-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[RLlib] Rename all np.product usage to np.prod #46317
Conversation
Signed-off-by: MaxVanDijck <vandijcksm@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving Data change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Very nice PR. Thanks a ton @MaxVanDijck! Could you merge the master again and push in the branch? Some tests are not passing, yet.
Done, looks like tests are passing now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from RLlib perspective.
Auto-merge enabled. Just waiting for the last test to pass ... |
Signed-off-by: MaxVanDijck <vandijcksm@gmail.com>
Head branch was pushed to by a user without write access
Many |
Why are these changes needed?
The as of numpy version 1.15.0
np.product
was made to be an alias ofnp.prod
, and is now deprecated in numpy 2.0.0This pr switches all usage of
np.product
to usenp.prod
refer: https://stackoverflow.com/a/49864286
Related issue number
#46250
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.