mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
remove unused UOp.shard_size [pr] (#15933)
This commit is contained in:
parent
e0ff6cc15c
commit
e27444a0ff
1 changed files with 0 additions and 3 deletions
|
|
@ -339,9 +339,6 @@ class UOp(OpMixin, metaclass=UOpMetaClass):
|
|||
if not isinstance(self.device, tuple) or self.axis is None: return self.max_shape
|
||||
return tuple(x//len(self.device) if i == self.axis else x for i,x in enumerate(self.max_shape))
|
||||
|
||||
@property
|
||||
def shard_size(self) -> int: return prod(self.max_shard_shape)
|
||||
|
||||
@functools.cached_property
|
||||
def ended_ranges(self) -> tuple[UOp, ...]:
|
||||
if self.op in range_start: return self.src[range_start[self.op]:]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue