update test_padto_sum_not_ok (#6450)

updated the setup as `exp() < -1` could be folded to False
This commit is contained in:
chenyu
2024-09-09 22:46:42 -04:00
committed by GitHub
parent 95c9fe841e
commit e0d35e3657
+1 -1
View File
@@ -2076,7 +2076,7 @@ class TestKernelOpts(unittest.TestCase):
with self.assertRaises(KernelOptError):
helper_linearizer_opt(a.exp().sum(0), [[Opt(OptOps.PADTO, 1, 32)],])
b = a < -1
b = a < 1
# lt is not safe to pad
with self.assertRaises(KernelOptError):
helper_linearizer_opt(b.sum(), [[Opt(OptOps.PADTO, 0, 32)],])