Open Tord-Zhang opened 6 years ago
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?
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/
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?