CMPEQ -> CMPNE and make it safe to pad (#4818)

* CMPNE

* new dataset
This commit is contained in:
chenyu
2024-06-03 18:02:15 -04:00
committed by GitHub
parent 79c7d402ee
commit 3afc914617
14 changed files with 31 additions and 31 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ class PythonProgram:
else: raise NotImplementedError(f"unimplemented tensor core {arg}")
elif uop is UOps.ALU:
assert all_same([len(x) for x in inp]), f"{[len(x) for x in inp]} doesn't match on {arg}"
assert all_same([dtype] + dtp) or arg in {BinaryOps.CMPEQ, BinaryOps.CMPLT, TernaryOps.WHERE}, f"dtype mismatch on {arg}"
assert all_same([dtype] + dtp) or arg in {BinaryOps.CMPNE, BinaryOps.CMPLT, TernaryOps.WHERE}, f"dtype mismatch on {arg}"
ul[i] = [exec_alu(arg, dtype, p) for p in zip(*inp)]
assert i in ul, (uop, dtype, idp, arg)
i += 1