RuntimeError:Expected to have finished reduction in the prior iteration

时间:2020-07-18 22:50:38   收藏:0   阅读:1160

技术分享图片

 

 解决办法:

添加find_unused_parameters=true

model=torch.nn.parallel.DistributedDataParallel(model,find_unused_parameters=true)

 

原文:https://www.cnblogs.com/lyl0618/p/13337220.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!