0
点赞
收藏
分享

微信扫一扫

UserWarning: volatile was removed and now has no effect. Use `with torch.no_grad():` instead.

_铁马冰河_ 2022-03-21 阅读 110


noises = Variable(noises, volatile=True)

改为:

with torch.no_grad():
noises = Variable(noises)


举报

相关推荐

0 条评论