mirror of
https://github.com/ROCm/jax.git
synced 2025-04-19 05:16:06 +00:00
Add assert raises check.
This commit is contained in:
parent
8143773b79
commit
00a273d1fe
@ -2077,6 +2077,8 @@ class APITest(jtu.JaxTestCase):
|
||||
rep = jnp.ones(()) + 1.
|
||||
self.assertIsInstance(rep, jax.interpreters.xla.DeviceArray)
|
||||
self.assertNotIsInstance(rep, collections.Hashable)
|
||||
with self.assertRaisesRegex(TypeError, 'unhashable type'):
|
||||
hash(rep)
|
||||
|
||||
def test_grad_without_enough_args_error_message(self):
|
||||
# https://github.com/google/jax/issues/1696
|
||||
|
Loading…
x
Reference in New Issue
Block a user