mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
oops, i didn't mean to change that
This commit is contained in:
@@ -233,7 +233,7 @@ class UOp(MathTrait, metaclass=UOpMetaClass):
|
||||
return None
|
||||
|
||||
# some ops init the shape
|
||||
case Ops.CONST | Ops.DEFINE_VAR | Ops.BIND: return () if len(self.src) and self.src[0].op is Ops.DEVICE else None
|
||||
case Ops.CONST | Ops.DEFINE_VAR | Ops.BIND: return () if self._device is not None else None
|
||||
case Ops.BUFFER: return (self.arg,)
|
||||
case Ops.BUFFER_VIEW: return (self.arg[0],)
|
||||
case Ops.BUFFERIZE: return tuple([int(r.vmax+1) for r in self.src[1:]])
|
||||
|
||||
Reference in New Issue
Block a user