re-enable test_reduce_0d_default int test case in test_dtype (#3336)

This commit is contained in:
chenyu
2024-02-07 05:30:14 -05:00
committed by GitHub
parent ca66be6a70
commit 02636ff62d

View File

@@ -322,7 +322,7 @@ class TestTypeSpec(unittest.TestCase):
def test_reduce_0d_default(self):
assert Tensor.ones([2,3,0]).sum(2).dtype == dtypes.default_float
# assert Tensor.ones([2,3,0], dtype=dtypes.int).sum(2).dtype == dtypes.int # requires reduceop acc fix
assert Tensor.ones([2,3,0], dtype=dtypes.int).sum(2).dtype == dtypes.int
@given(strat.sampled_from([dtypes.int8,dtypes.int16,dtypes.int32,dtypes.int64]), strat.sampled_from([dtypes.float16,dtypes.float32,dtypes.float64]))
def test_arange(self, default_int, default_float):