mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-25 14:58:46 -05:00
fix: restore old behaviour (#1689)
Co-authored-by: Roelof van Dijk <roelof.van.dijk@vitestro.com>
This commit is contained in:
@@ -29,7 +29,7 @@ class LazyOp:
|
||||
self.op, self.src, self.arg, self.buffers = op, src, arg, ()
|
||||
try: # NOTE: the linearizer's key function maps the buffers to ints, and LOCAL_BUFFER is used. we don't care about buffers in these cases
|
||||
for x in src: self.buffers += x.buffers
|
||||
except AttributeError: pass
|
||||
except AttributeError: self.buffers = ()
|
||||
|
||||
def __repr__(self): return f"LazyOp(op={self.op}, src={self.src}, arg={self.arg})"
|
||||
def __eq__(self, __value: object) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user