Skip to content

Commit

Permalink
account for deprecated numpy.product (use numpy.prod instead)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikcfd committed Jul 30, 2023
1 parent fb92a30 commit 8a0ff10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/feinsum/measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _get_footprint_gbytes(expr: FusedEinsum, long_dim_length: int) -> float:

# TODO: mypy is right arg.shape can be 'Any' expression
return sum( # type: ignore[no-any-return]
np.product(arg.shape) * arg.dtype.itemsize
np.prod(arg.shape) * arg.dtype.itemsize
for arg in kernel.args) * 1e-9


Expand Down

0 comments on commit 8a0ff10

Please sign in to comment.