Skip to content

Commit 7564237

Browse files
committed
math
1 parent a95b238 commit 7564237

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

onnxscript/ir/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _repr_base(self) -> str:
114114
@property
115115
def size(self) -> int:
116116
"""The number of elements in the tensor."""
117-
return np.prod(self.shape.numpy()) # type: ignore[return-value,attr-defined]
117+
return math.prod(self.shape.numpy()) # type: ignore[attr-defined]
118118

119119
@property
120120
def nbytes(self) -> int:

0 commit comments

Comments
 (0)