np.float aliase is removed in newer versions of Numpy
NightXBurn opened this issue · 1 comments
NightXBurn commented
Describe the bug
From the 1.24 Numpy version 1.24, aliases for float, int and similar dtypes are removed.
To Reproduce
Steps to reproduce the behavior:
- Clone the repo
- Check if you have a 1.24>= numpy version or update your numpy version
- Run the example of the dann.py for image classification
np.float
was a deprecated alias for the builtinfloat
. To avoid this error in existing code, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here.
Expected behavior
Expect the model to work correctly.
Desktop (please complete the following information):
- OS: osx
- Browser chrome
Solution
Replace all np.float, np.int, ... with float, int, dtypes.
thucbx99 commented
Thanks for pointing this out. Indeed, the recommended PyTorch version of our library is somewhat old. We will consider update this later.