属性错误:模块“torch._C”没有属性“HalfStorageBase”

问题描述 投票:0回答:1

我使用 crypten 模块(pip install crypten)来做一些工作,但是当我使用“import crypten”时,IDE 告诉我这个问题:AttributeError: module 'torch._C' has no attribute 'HalfStorageBase', and I don不知道如何解决这个问题

encryption pytorch
1个回答
-1
投票

我对

crypten
模块也有同样的问题,我通过使用
torch==1.11.0
 降级到 
torch==1.9.0

解决了这个问题
pip install torch==1.9.0
© www.soinside.com 2019 - 2024. All rights reserved.