RuntimeError: module must have its parameters and buffers on device cuda:1 (device_ids[0]) but found one of them on device: cpu

前端 未结 0 1137
后悔当初
后悔当初 2020-12-16 12:14

I am implementing nn.DataParallel class in code and i encapsulate all my models in this class. It gives an error ambiguous error.

Class Code



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题