mirror of
https://github.com/ROCm/jax.git
synced 2025-04-19 05:16:06 +00:00
add test for device constant compile options bug
This commit is contained in:
parent
8c5e41042b
commit
a37703552f
@ -337,6 +337,9 @@ class APITest(jtu.JaxTestCase):
|
||||
f(2)
|
||||
assert len(effects) == 3
|
||||
|
||||
def test_large_device_constant(self):
|
||||
jit(lambda x: x)(np.zeros(int(2e6))) # doesn't crash
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
absltest.main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user