remove invalid int div test (#11106)

* rm test

* also rm this
This commit is contained in:
ttomsa
2025-07-05 23:57:55 +01:00
committed by GitHub
parent a4aa769c0a
commit 4905af4ae0

View File

@@ -587,12 +587,6 @@ class TestOps(unittest.TestCase):
if is_dtype_supported(dtypes.uint64):
x = Tensor(2**64 - 1, dtype=dtypes.uint64).idiv(1)
np.testing.assert_equal(x.numpy(), 2**64 - 1)
# 1 // 0 is device dependent, but it should not raise
Tensor([1]).idiv(1).realize()
if not CI: # TODO: crashed in CI on some devices
# ... because if might be in a where branch that the output is well defined
t = Tensor([-1, 0, 1, 2])
np.testing.assert_equal((t > 0).where(1//t, t).numpy(), [-1, 0, 1, 0])
def test_scalar_div(self):
helper_test_op([(45,65)], lambda x: x/255)