Skip to content

Commit

Permalink
Use the same defaul precision as torch.gradcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed Jul 3, 2024
1 parent 8dd7adf commit 2783dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/metatensor-operations/tests/_gradcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def check_finite_differences(
*,
parameter: str,
displacement: float = 1e-6,
rtol: float = 1e-5,
atol: float = 1e-15,
rtol: float = 1e-3,
atol: float = 1e-9,
) -> None:
"""
Check that analytical gradients with respect to ``parameter`` in the
Expand Down

0 comments on commit 2783dd8

Please sign in to comment.