Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

np.product is deprecated in numpy 1.25 #1470

Merged
merged 2 commits into from
Mar 9, 2023
Merged

Conversation

pllim
Copy link
Contributor

@pllim pllim commented Mar 9, 2023

@pllim pllim requested a review from a team as a code owner March 9, 2023 19:50
@github-actions github-actions bot added this to the 2.15.0 milestone Mar 9, 2023
@braingram braingram mentioned this pull request Mar 9, 2023
@braingram
Copy link
Contributor

Thanks!

There appears to be one more usage of product here:

stride = strides[0] if strides is not None else np.product(shape[1:]) * dtype.itemsize

Would you mind adding that change to this PR?

@pllim
Copy link
Contributor Author

pllim commented Mar 9, 2023

Done.

Copy link
Contributor

@braingram braingram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM when the CI passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants