我的报错语句是torch里的tensor转numpy,我不可能去改torch的源码,看隔壁博主说把numpy 1.21降为numpy1.19就好了,亲测有用。pip install numpy==1.19
TypeError: can‘t convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to
最新推荐文章于 2023-11-29 20:27:55 发布
我的报错语句是torch里的tensor转numpy,我不可能去改torch的源码,看隔壁博主说把numpy 1.21降为numpy1.19就好了,亲测有用。pip install numpy==1.19