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.float() is deprecated in NumPy 1.20, which is used in misc.py #314

Closed
zzjjbb opened this issue Feb 23, 2021 · 1 comment
Closed

np.float() is deprecated in NumPy 1.20, which is used in misc.py #314

zzjjbb opened this issue Feb 23, 2021 · 1 comment

Comments

@zzjjbb
Copy link

zzjjbb commented Feb 23, 2021

Problem

This line trigger a warning from numpy:

DeprecationWarning: np.float is a deprecated alias for the builtin float. To silence this warning, use float by itself. Doing
this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

I think this means float('.'.join([str(i) for i in dev.compute_capability()])) should be used rather than np.float(...) for future compatibility.

Environment

Python 3.8.5, NumPy 1.20, scikit-cuda 0.5.3 from PyPI (I guess the version of other library is not important)

@lebedov
Copy link
Owner

lebedov commented Mar 30, 2021

Fixed.

@lebedov lebedov closed this as completed Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants