这种问题,就是数据没有放进gpu造成的,一般加.cuda()可以解决
RuntimeError: expected backend CPU and dtype Float but got backend CUDA and dtype Float
最新推荐文章于 2023-08-07 09:37:54 发布
这种问题,就是数据没有放进gpu造成的,一般加.cuda()可以解决