Which PyTorch version are you using?
In 0.4.0
Variables
and tensors
were merged, so that you don’t have to wrap your tensors anymore.
If you are still used to Variables
, the migration guide might help.
Also, the current release is 0.4.1
. Make sure to update to this version.
1 Like