Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust test tolerances for test_assert_trees_all_close #334

Merged
merged 0 commits into from
Mar 4, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Mar 4, 2024

Adjust test tolerances for test_assert_trees_all_close

The test for chexify assert_trees_all_close asserted that jnp.isclose(10, 20, rtol=0.5, atol0.5) is false. By the rules of np.testing.assert_allclose this
should actually pass, because (|10-20| <= 0.5 + (0.5 * 20)). However, it was only
when JAX PR #19936 was merged that this became the case.

This changes the rtol/atol to make the test pass.

@copybara-service copybara-service bot force-pushed the test_612417869 branch 2 times, most recently from fc6be76 to d89e04d Compare March 4, 2024 20:08
@copybara-service copybara-service bot closed this Mar 4, 2024
@copybara-service copybara-service bot merged commit ce4558a into master Mar 4, 2024
@copybara-service copybara-service bot deleted the test_612417869 branch March 4, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants