We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f080e commit 27c06b6Copy full SHA for 27c06b6
tests/core/core_lift_test.py
@@ -12,8 +12,6 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
-import operator
16
-
17
import jax
18
import numpy as np
19
from absl.testing import absltest
@@ -170,12 +168,11 @@ def body_fn(scope, c):
170
168
)
171
169
self.assertEqual(vars['state']['acc'], x)
172
self.assertEqual(c, 2 * x)
173
- np.testing.assert_array_equal(
+ self.assertEqual(
174
vars['state']['rng_params'][0], vars['state']['rng_params'][1]
175
176
with jax.debug_key_reuse(False):
177
- np.testing.assert_array_compare(
178
- operator.__ne__,
+ self.assertNotEqual(
179
vars['state']['rng_loop'][0],
180
vars['state']['rng_loop'][1],
181
0 commit comments