Opax

Latest version: v0.2.11

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

Scan your dependencies

Page 1 of 2

0.2.11

* Use `jax.tree_util.*` functions to avoid warnings.
* **Full Changelog**: https://github.com/NTT123/opax/compare/v0.2.10...v0.2.11

0.2.10

* `ScaleBySchedule`: correct the learning rate at initialization.

**Full Changelog**: https://github.com/NTT123/opax/compare/v0.2.8...v0.2.10

0.2.8

Introduce strict and non-strict modes:
- Strict mode requires pytrees to be matched.
- Non-strict mode only requires tree leaves to be matched.

0.2.7

* Make testcases compatible with `pax3>=0.5.0`.

0.2.6

- Simplify the implementation by considering gradient transformations as `StateModule`.

0.2.5

Introduce the class method `init`. It makes things easier to understand because we explicitly say "initialize the optimizer".

Implicit:
python
optimizer = opax.adam(1e-3)(net.parameters())

Explicit:
python
optimizer = opax.adam(1e-3).init(net.parameters())

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.