remove the all_int(shape) check in Tensor._loadop (#2874)

* remove the all_int(shape) check in Tensor._loadop

we can support jittable symbolic shape random with custom rand now, and we can formalize it in the test after threefry is ready

* MOCKHIP false positive
This commit is contained in:
chenyu
2023-12-20 15:04:50 -05:00
committed by GitHub
parent 5f07ef455e
commit e13b4964d7
2 changed files with 3 additions and 5 deletions

View File

@@ -46,6 +46,7 @@ class TestSymbolicOps(unittest.TestCase):
expected = f(q, k, v).numpy()
np.testing.assert_allclose(symbolic, expected, atol=1e-6, rtol=1e-6)
@unittest.skipIf(getenv("MOCKHIP"), "MOCKHIP only compiles and does not run")
def test_attention_training(self):
with Tensor.train():
self.test_attention(dropout_p=0.0)