Variable 是torch.autograd中很重要的类。它用来包装Tensor,将Tensor转换为Variable之后, ... z = Variable(torch.randn(2,2), requires_grad=True)
確定! 回上一頁