(self, shape: EinsumShape)
| 41 | return self._shape |
| 42 | |
| 43 | def reshape(self, shape: EinsumShape) -> "EinsumOperand": |
| 44 | if shape == self._shape: |
| 45 | return self |
| 46 | shape_val = tuple(map(lambda x: self._ctx.dims2val(x), shape)) |
| 47 | return EinsumOperand( |
| 48 | shape, self._ctx.reshape(self._tracer, shape_val), self._ctx |
| 49 | ) |
| 50 | |
| 51 | def broadcast(self, shape: EinsumShape) -> "EinsumOperand": |
| 52 | if shape == self._shape: |
no test coverage detected