We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a95b238 commit 7564237Copy full SHA for 7564237
1 file changed
onnxscript/ir/_core.py
@@ -114,7 +114,7 @@ def _repr_base(self) -> str:
114
@property
115
def size(self) -> int:
116
"""The number of elements in the tensor."""
117
- return np.prod(self.shape.numpy()) # type: ignore[return-value,attr-defined]
+ return math.prod(self.shape.numpy()) # type: ignore[attr-defined]
118
119
120
def nbytes(self) -> int:
0 commit comments