Skip to content

Commit

Permalink
Update np.product to np.prod
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkumar committed Jan 14, 2025
1 parent 1e16509 commit 2aafe12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/test_optimizable.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def sum(self):
return np.sum(self.local_full_x)

def product(self):
return np.product(self.local_full_x)
return np.prod(self.local_full_x)

return_fn_map = {'sum': sum, 'prod': product}

Expand Down

0 comments on commit 2aafe12

Please sign in to comment.