mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
clean up is_realized [pr] (#14538)
base cannot be Ops.MULTI since MULTI is a view now
This commit is contained in:
@@ -671,8 +671,7 @@ class UOp(OpMixin, metaclass=UOpMetaClass):
|
||||
# NOTE: this is used by the JIT to determine which inputs we capture
|
||||
return self.buffer if self.buffer.is_allocated() else None
|
||||
@property
|
||||
def is_realized(self) -> bool:
|
||||
return all(x.base.realized is not None for x in self.base.src) if self.base.op is Ops.MULTI else self.base.realized is not None
|
||||
def is_realized(self) -> bool: return self.base.realized is not None
|
||||
|
||||
# *** uop Variable stuff ***
|
||||
|
||||
|
||||
Reference in New Issue
Block a user