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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 本文是我在《天堂向左,深圳往右》(即电视剧《相爱十年》)的豆瓣书评,洋洋洒洒码了一堆字,就顺便再搬运过来吧,与...
    山丘丶阅读 327评论 0 6
  • 昨天听老师的分享,开头的几句一下给我了极大的共鸣,被公众神化了的妈妈,肩上背负了多少的压力和责任啊,好似一个家里如...
    云欣CC阅读 374评论 0 3
  • 过年随想-作者:妖林弍柳 昨天是腊八节,俗话讲来过了腊八就是年,今年的年早早的就要来到了,催促着人们开始订购了返乡...
    78f6ba5176a3阅读 203评论 0 0