1.RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #2 'weight'
由于不全是自己写的代码,开始以为net没在GPU上,输入在GPIU上,后来发现net已经放到GPU上了,输入未放到GPU上。
1.RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #2 'weight'
由于不全是自己写的代码,开始以为net没在GPU上,输入在GPIU上,后来发现net已经放到GPU上了,输入未放到GPU上。

被折叠的 条评论
为什么被折叠?