谢谢大佬的分享, 这有个问题想请教您一下:我想多个GPU训练这个模型,设置了多个GPU训练,但是训练时显示“RuntimeError: Expected tensor for argument #1 'input' to have the same device as tensor for argument #2 'weight'; but device 1 does not equal 0 (while checking arguments for cudnn_convolution)”,好像是模型定义不规范的问题,导致权重与模型在不同GPU上,请大佬指点一二,谢谢啦