.. automodule:: torch.nn
.. currentmodule:: torch.nn
.. autoclass:: Parameter
:members:
.. autoclass:: Module
:members:
.. autoclass:: Sequential
:members:
.. autoclass:: ModuleList
:members:
.. autoclass:: ParameterList
:members:
.. autoclass:: Conv1d
:members:
.. autoclass:: Conv2d
:members:
.. autoclass:: Conv3d
:members:
.. autoclass:: ConvTranspose1d
:members:
.. autoclass:: ConvTranspose2d
:members:
.. autoclass:: ConvTranspose3d
:members:
.. autoclass:: MaxPool1d
:members:
.. autoclass:: MaxPool2d
:members:
.. autoclass:: MaxPool3d
:members:
.. autoclass:: MaxUnpool1d
:members:
.. autoclass:: MaxUnpool2d
:members:
.. autoclass:: MaxUnpool3d
:members:
.. autoclass:: AvgPool1d
:members:
.. autoclass:: AvgPool2d
:members:
.. autoclass:: AvgPool3d
:members:
.. autoclass:: FractionalMaxPool2d
:members:
.. autoclass:: LPPool2d
:members:
.. autoclass:: AdaptiveMaxPool1d
:members:
.. autoclass:: AdaptiveMaxPool2d
:members:
.. autoclass:: AdaptiveAvgPool1d
:members:
.. autoclass:: AdaptiveAvgPool2d
:members:
.. autoclass:: ReLU
:members:
.. autoclass:: ReLU6
:members:
.. autoclass:: ELU
:members:
.. autoclass:: PReLU
:members:
.. autoclass:: LeakyReLU
:members:
.. autoclass:: Threshold
:members:
.. autoclass:: Hardtanh
:members:
.. autoclass:: Sigmoid
:members:
.. autoclass:: Tanh
:members:
.. autoclass:: LogSigmoid
:members:
.. autoclass:: Softplus
:members:
.. autoclass:: Softshrink
:members:
.. autoclass:: Softsign
:members:
.. autoclass:: Tanhshrink
:members:
.. autoclass:: Softmin
:members:
.. autoclass:: Softmax
:members:
.. autoclass:: LogSoftmax
:members:
.. autoclass:: BatchNorm1d
:members:
.. autoclass:: BatchNorm2d
:members:
.. autoclass:: BatchNorm3d
:members:
.. autoclass:: RNN
:members:
.. autoclass:: LSTM
:members:
.. autoclass:: GRU
:members:
.. autoclass:: RNNCell
:members:
.. autoclass:: LSTMCell
:members:
.. autoclass:: GRUCell
:members:
.. autoclass:: Linear
:members:
.. autoclass:: Dropout
:members:
.. autoclass:: Dropout2d
:members:
.. autoclass:: Dropout3d
:members:
.. autoclass:: Embedding
:members:
.. autoclass:: PairwiseDistance
:members:
.. autoclass:: L1Loss
:members:
.. autoclass:: MSELoss
:members:
.. autoclass:: CrossEntropyLoss
:members:
.. autoclass:: NLLLoss
:members:
.. autoclass:: NLLLoss2d
:members:
.. autoclass:: KLDivLoss
:members:
.. autoclass:: BCELoss
:members:
.. autoclass:: MarginRankingLoss
:members:
.. autoclass:: HingeEmbeddingLoss
:members:
.. autoclass:: MultiLabelMarginLoss
:members:
.. autoclass:: SmoothL1Loss
:members:
.. autoclass:: SoftMarginLoss
:members:
.. autoclass:: MultiLabelSoftMarginLoss
:members:
.. autoclass:: CosineEmbeddingLoss
:members:
.. autoclass:: MultiMarginLoss
:members:
.. autoclass:: PixelShuffle
:members:
.. autoclass:: UpsamplingNearest2d
:members:
.. autoclass:: UpsamplingBilinear2d
:members:
.. autoclass:: DataParallel
:members:
.. autofunction:: torch.nn.utils.clip_grad_norm
.. currentmodule:: torch.nn.utils.rnn
.. autofunction:: torch.nn.utils.rnn.PackedSequence
.. autofunction:: torch.nn.utils.rnn.pack_padded_sequence
.. autofunction:: torch.nn.utils.rnn.pad_packed_sequence
.. currentmodule:: torch.nn.functional
.. autofunction:: conv1d
.. autofunction:: conv2d
.. autofunction:: conv3d
.. autofunction:: conv_transpose1d
.. autofunction:: conv_transpose2d
.. autofunction:: conv_transpose3d
.. autofunction:: avg_pool1d
.. autofunction:: avg_pool2d
.. autofunction:: avg_pool3d
.. autofunction:: max_pool1d
.. autofunction:: max_pool2d
.. autofunction:: max_pool3d
.. autofunction:: max_unpool1d
.. autofunction:: max_unpool2d
.. autofunction:: max_unpool3d
.. autofunction:: lp_pool2d
.. autofunction:: adaptive_max_pool1d
.. autofunction:: adaptive_max_pool2d
.. autofunction:: adaptive_avg_pool1d
.. autofunction:: adaptive_avg_pool2d
Non-linear activation functions
.. autofunction:: threshold
.. autofunction:: relu
.. autofunction:: hardtanh
.. autofunction:: relu6
.. autofunction:: elu
.. autofunction:: leaky_relu
.. autofunction:: prelu
.. autofunction:: rrelu
.. autofunction:: logsigmoid
.. autofunction:: hardshrink
.. autofunction:: tanhshrink
.. autofunction:: softsign
.. autofunction:: softplus
.. autofunction:: softmin
.. autofunction:: softmax
.. autofunction:: softshrink
.. autofunction:: log_softmax
.. autofunction:: tanh
.. autofunction:: sigmoid
.. autofunction:: batch_norm
.. autofunction:: linear
.. autofunction:: dropout
.. autofunction:: pairwise_distance
.. autofunction:: nll_loss
.. autofunction:: kl_div
.. autofunction:: cross_entropy
.. autofunction:: binary_cross_entropy
.. autofunction:: smooth_l1_loss
.. autofunction:: pixel_shuffle
.. autofunction:: pad
.. currentmodule:: torch.nn.init
.. autofunction:: uniform
.. autofunction:: normal
.. autofunction:: constant
.. autofunction:: xavier_uniform
.. autofunction:: xavier_normal
.. autofunction:: kaiming_uniform
.. autofunction:: kaiming_normal
.. autofunction:: orthogonal
.. autofunction:: sparse