google-deepmind / optax

Optax is a gradient processing and optimization library for JAX.
https://optax.readthedocs.io
Apache License 2.0
1.71k stars 194 forks source link

more robust tests #1050

Closed copybara-service[bot] closed 2 months ago

copybara-service[bot] commented 2 months ago

more robust tests

These tests are often failing due to floating point precision differences. according to https://docs.python.org/3/library/doctest.html#warnings its safer to print floats in doctests. Lets see if that solves some of these issues