Skip to content

Commit

Permalink
Update the code to not use soon-to-be-deprecated Chex assertions.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 551473625
  • Loading branch information
hbq1 authored and OptaxDev committed Jul 27, 2023
1 parent cfa6f78 commit 1afd608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optax/_src/wrappers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def masked_negate(updates):

with self.subTest('tree_map_params'):
result = state_utils.tree_map_params(init_fn, lambda v: v, state)
chex.assert_tree_all_equal_structs(result, state)
chex.assert_trees_all_equal_structs(result, state)

updates, state = update_fn(input_updates, state, params)
chex.assert_trees_all_close(updates, correct_updates)
Expand Down

0 comments on commit 1afd608

Please sign in to comment.