-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
PyTorchZeroToAll/03_auto_gradient.py
Line 7 in edd7ba1
| w = Variable(torch.Tensor([1.0]), requires_grad=True) # Any random value |
The class torch.autograd.Variable is deprecated.
This line must be updated to
w = torch.tensor([1.0], requires_grad=True) # Any random value
hchen98
Metadata
Metadata
Assignees
Labels
No labels