你可以使用自动求导来做很多有趣的事情. x = torch.randn(3) x = Variable(x, requires_grad = True) y = x * 2 while y.data.norm() < 1000: y = y * 2 print(y) ...
確定! 回上一頁