Skip to content

Commit bf8e254

Browse files
shagunsodhanisoumith
authored andcommitted
Replace reference to variable by tensor (#530)
1 parent c4d6e11 commit bf8e254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/ptcheat.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Neural Network API
1818
.. code-block:: python
1919
2020
import torch.autograd as autograd # computation graph
21-
from torch.autograd import Variable # variable node in computation graph
21+
from torch import Tensor # tensor node in the computation graph
2222
import torch.nn as nn # neural networks
2323
import torch.nn.functional as F # layers, activations and more
2424
import torch.optim as optim # optimizers e.g. gradient descent, ADAM, etc.

0 commit comments

Comments
 (0)