解决办法:使用DataParalle包裹模型

model = nn.DataParallel(model)

 

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐