Gustavgrad

Latest version: v0.2.0

Safety actively analyzes 681775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.0

Adds the `no_grad` context manager to `Tensor` and `Module`.

The `no_grad` context manager can be used to temporarily disable gradient computations for a `Tensor` or `Module`. It can be used to speed up computations in situations where `backward` will not be called, such as when evaluating on a test or validation set.

python
with tensor.no_grad():
...

python
with module.no_grad():
...

0.1.1

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.