We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4d6e11 commit bf8e254Copy full SHA for bf8e254
beginner_source/ptcheat.rst
@@ -18,7 +18,7 @@ Neural Network API
18
.. code-block:: python
19
20
import torch.autograd as autograd # computation graph
21
- from torch.autograd import Variable # variable node in computation graph
+ from torch import Tensor # tensor node in the computation graph
22
import torch.nn as nn # neural networks
23
import torch.nn.functional as F # layers, activations and more
24
import torch.optim as optim # optimizers e.g. gradient descent, ADAM, etc.
0 commit comments