2018-11-23

attempt to solve the problem which occurred frequently during the debugging experience recently.

"expected to find torch.FloatTensor but found torch.cuda.FloatTensor instead"

So!!!here an amazing website has been found as the solution.

https://www.jianshu.com/p/1fa86e060e5a

in my problem, the reason is partly because the one tensor is on GPU and another tensor is on CPU

你可能感兴趣的:(2018-11-23)