We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55512d0 commit e4acdadCopy full SHA for e4acdad
src/onnx_ir/_core.py
@@ -836,15 +836,10 @@ def shape(self) -> Shape:
836
"""The shape of the tensor. Immutable."""
837
return self._shape
838
839
- @property
840
- def size(self) -> int:
841
- """The number of elements in the tensor."""
842
- return sum(len(string) for string in self.string_data())
843
-
844
@property
845
def nbytes(self) -> int:
846
"""The number of bytes in the tensor."""
847
- return self.size
+ return sum(len(string) for string in self.string_data())
848
849
850
def raw(self) -> Sequence[bytes] | npt.NDArray[np.bytes_]:
0 commit comments