ECO-pytorch icon indicating copy to clipboard operation
ECO-pytorch copied to clipboard

No autograd

Open Tord-Zhang opened this issue 7 years ago • 1 comments
trafficstars

Hi, I find that before input the tensor into the network, you don't use torch.autograd.Variable to convert a tensor to a Variable. How does this work?

Tord-Zhang avatar Oct 20 '18 07:10 Tord-Zhang

Note that in PyTorch 0.4, the Tensor and Variable are merged, so we don't need to convert anymore.

Please refer the following link:

https://pytorch.org/blog/pytorch-0_4_0-migration-guide/

zhang-can avatar Oct 21 '18 02:10 zhang-can