thuml / Transfer-Learning-Library

Transfer Learning Library for Domain Adaptation, Task Adaptation, and Domain Generalization
http://transfer.thuml.ai
MIT License
3.39k stars 553 forks source link

numpy版本更新后np.float弃用 #253

Closed KevinCarpricorn closed 4 months ago

KevinCarpricorn commented 11 months ago

AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, 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.

didi226 commented 6 months ago

I meet this problem, too

thucbx99 commented 4 months ago

Thanks for pointing this out. You can modify it locally.