mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
use is to compare with enum (#3993)
* use is to compare with enum currently it's mixed between `==` and `is`, moved all to `is` * more
This commit is contained in:
2
test/external/fuzz_linearizer.py
vendored
2
test/external/fuzz_linearizer.py
vendored
@@ -170,7 +170,7 @@ def fuzz_linearizer(lin: Linearizer):
|
||||
def _is_simple(lin: Linearizer) -> bool:
|
||||
if len(lin.ast) > 1: return False
|
||||
ast:LazyOp = lin.ast[0]
|
||||
if ast.src[0] and ast.src[0].op == UnaryOps.CAST and ast.src[0].src[0] and ast.src[0].src[0].op == BufferOps.LOAD: return True
|
||||
if ast.src[0] and ast.src[0].op is UnaryOps.CAST and ast.src[0].src[0] and ast.src[0].src[0].op is BufferOps.LOAD: return True
|
||||
return False
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user