From e27444a0ff9c8a690b5ae7b7dbd98d9b16e45547 Mon Sep 17 00:00:00 2001 From: chenyu Date: Sat, 25 Apr 2026 12:27:58 -0400 Subject: [PATCH] remove unused UOp.shard_size [pr] (#15933) --- tinygrad/uop/ops.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tinygrad/uop/ops.py b/tinygrad/uop/ops.py index 81902a4934..e9a30be575 100644 --- a/tinygrad/uop/ops.py +++ b/tinygrad/uop/ops.py @@ -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]:]