我使用 crypten 模块(pip install crypten)来做一些工作,但是当我使用“import crypten”时,IDE 告诉我这个问题:AttributeError: module 'torch._C' has no attribute 'HalfStorageBase', and I don不知道如何解决这个问题
我对
crypten
模块也有同样的问题,我通过使用 从
torch==1.11.0
降级到
torch==1.9.0
解决了这个问题
pip install torch==1.9.0