(self, n, dim=0)
| 56 | assert all(x >= 0 for x in self.shape if x is not None) |
| 57 | |
| 58 | def extend(self, n, dim=0): |
| 59 | shape = list(self.shape) |
| 60 | shape[dim] += n |
| 61 | return TensorSpec(tuple(shape), self.dtype) |
| 62 | |
| 63 | def __mul__(self, other): |
| 64 | assert isinstance(other, int) |
no test coverage detected