问题描述:RuntimeError: result type Float can't be cast to the desired output type Long
原因:输入的不同张量类型不一样,将其中一个使用.to(torch.float)更改下类型即可
问题描述:RuntimeError: result type Float can't be cast to the desired output type Long
原因:输入的不同张量类型不一样,将其中一个使用.to(torch.float)更改下类型即可