Skip to content

Commit

Permalink
Merge pull request #4332 from jakevdp:fix-lift-test
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 689845865
  • Loading branch information
Flax Authors committed Oct 25, 2024
2 parents 3895d51 + 27c06b6 commit cd5db46
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/core/core_lift_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import operator

import jax
import numpy as np
from absl.testing import absltest
Expand Down Expand Up @@ -170,12 +168,11 @@ def body_fn(scope, c):
)
self.assertEqual(vars['state']['acc'], x)
self.assertEqual(c, 2 * x)
np.testing.assert_array_equal(
self.assertEqual(
vars['state']['rng_params'][0], vars['state']['rng_params'][1]
)
with jax.debug_key_reuse(False):
np.testing.assert_array_compare(
operator.__ne__,
self.assertNotEqual(
vars['state']['rng_loop'][0],
vars['state']['rng_loop'][1],
)
Expand Down

0 comments on commit cd5db46

Please sign in to comment.