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

阅读 114

2022-03-21


noises = Variable(noises, volatile=True)

改为:

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


相关推荐

精彩评论(0)

0 0 举报