RuntimeError: expected backend CPU and dtype Double but got backend CPU and dtype Float

此问题是由于数据类型不匹配导致的,在出错的数据后面添加.double()

posted @ 2020-11-03 12:21  Marklong  阅读(743)  评论(0编辑  收藏  举报