Skip to content
#

Python

python logo

Python is a dynamically typed programming language designed by Guido van Rossum. Much like the programming language Ruby, Python was designed to be easily read by programmers. Because of its large following and many libraries, Python can be implemented and used to do anything from webpages to scientific research.

Here are 187,265 public repositories matching this topic...

kurtamohler
kurtamohler commented Jan 20, 2021

🚀 Feature

Add support for torch.max with:

  • CUDA bfloat16
  • CPU float16 and bfloat16

Motivation

Currently, torch.max has support for CUDA float16:

>>> torch.rand(10, dtype=torch.float16, device='cuda').max()
tensor(0.8530, device='cuda:0', dtype=torch.float16)

But all three other combinations of CPU/CUDA and float16/bfloat16 are not supported:

>>> torch.ra
ogrisel
ogrisel commented Nov 13, 2020

Most functions in scipy.linalg functions (e.g. svd, qr, eig, eigh, pinv, pinv2 ...) have a default kwarg check_finite=True that we typically leave to the default value in scikit-learn.

As we already validate the input data for most estimators in scikit-learn, this check is redundant and can cause significant overhead, especially at predict / transform time. We should probably a

scrapy
superset
junlincc
junlincc commented Jan 28, 2021

Currently, after user editing a metric in Edit dataset modal in Explore, the edited metric jump to the bottom of the metric list.
it create a few issues:

  1. when the metric list is long, by dropping to the bottom, user might take a while to find it or think the most recent edited metic is lost.
  2. every time users edit a single metric, they see a different order of metric list showing in the
MarcoGorelli
MarcoGorelli commented Feb 1, 2021

Issue here is:

  1. in .pre-commit-config.yaml, change the ref of pyupgrade from v2.7.4 to v2.8.0
  2. run pre-commit run pyupgrade --all-files
  3. run pre-commit run flake8 --all-files - there will be lots of errors from unused imports, so you should remove them (or you could look into using autoflake to do it for you)
  4. if both `pre-commit run fl
bmw
bmw commented May 14, 2020

In all of our current uses of os.umask or filesystem.umask, we always temporarily set it to a different value and then restore it using a try/finally block. I expect this pattern to continue.

Because of that, why don't we create a simple function in certbot.util that can be used as a context manager to set umask to a value and restore it to its previous value when exiting the with blo

Created by Guido van Rossum

Released February 20, 1991

Organization
python
Website
www.python.org
Wikipedia
Wikipedia

Related Topics

language ruby