Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

import pytorch

import torch.autograd as autograd         # computation graph
from torch import Tensor                  # tensor node in the computation graph
import torch.nn as nn                     # neural networks
import torch.nn.functional as F           # layers, activations and more
import torch.optim as optim               # optimizers e.g. gradient descent, ADAM, etc.
from torch.jit import script, trace       # hybrid frontend decorator and tracing jit
Source by pytorch.org #
 
PREVIOUS NEXT
Tagged: #import #pytorch
ADD COMMENT
Topic
Name
1+1 =