-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
strict
argument to assert_trees_all_equal
.
This enables using the 'strict' mode of `numpy.testing.assert_array_equal`. This mode (disabled by default) has stricter handling of scalar values, as described in https://numpy.org/doc/stable/reference/generated/numpy.testing.assert_array_equal.html. The argument is `False` by default, so this changes allows users to enable the stricter equality checking, if they wish. The jittable implementation of `assert_trees_all_equal` has always been 'strict' in the `numpy.testing` sense. I have not implemented `strict=False` for this function, although it would probably be possible to do so. PiperOrigin-RevId: 543676343
- Loading branch information
1 parent
149068a
commit 7eaff96
Showing
2 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters