add test for device constant compile options bug

This commit is contained in:
Matthew Johnson 2019-02-25 13:48:01 -08:00
parent 8c5e41042b
commit a37703552f

View File

@ -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()