.. currentmodule:: torch.nn.functional
.. autofunction:: conv1d
.. autofunction:: conv2d
.. autofunction:: conv3d
.. autofunction:: conv_transpose1d
.. autofunction:: conv_transpose2d
.. autofunction:: conv_transpose3d
.. autofunction:: unfold
.. autofunction:: fold
.. 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_pool1d
.. autofunction:: lp_pool2d
.. autofunction:: adaptive_max_pool1d
.. autofunction:: adaptive_max_pool2d
.. autofunction:: adaptive_max_pool3d
.. autofunction:: adaptive_avg_pool1d
.. autofunction:: adaptive_avg_pool2d
.. autofunction:: adaptive_avg_pool3d
Non-linear activation functions
.. autofunction:: threshold
.. autofunction:: threshold_
.. autofunction:: relu
.. autofunction:: relu_
.. autofunction:: hardtanh
.. autofunction:: hardtanh_
.. autofunction:: hardswish
.. autofunction:: relu6
.. autofunction:: elu
.. autofunction:: elu_
.. autofunction:: selu
.. autofunction:: celu
.. autofunction:: leaky_relu
.. autofunction:: leaky_relu_
.. autofunction:: prelu
.. autofunction:: rrelu
.. autofunction:: rrelu_
.. autofunction:: glu
.. autofunction:: gelu
.. autofunction:: logsigmoid
.. autofunction:: hardshrink
.. autofunction:: tanhshrink
.. autofunction:: softsign
.. autofunction:: softplus
.. autofunction:: softmin
.. autofunction:: softmax
.. autofunction:: softshrink
.. autofunction:: gumbel_softmax
.. autofunction:: log_softmax
.. autofunction:: tanh
.. autofunction:: sigmoid
.. autofunction:: hardsigmoid
.. autofunction:: silu
.. autofunction:: batch_norm
.. autofunction:: instance_norm
.. autofunction:: layer_norm
.. autofunction:: local_response_norm
.. autofunction:: normalize
.. autofunction:: linear
.. autofunction:: bilinear
.. autofunction:: dropout
.. autofunction:: alpha_dropout
.. autofunction:: feature_alpha_dropout
.. autofunction:: dropout2d
.. autofunction:: dropout3d
.. autofunction:: embedding
.. autofunction:: embedding_bag
.. autofunction:: one_hot
.. autofunction:: pairwise_distance
.. autofunction:: cosine_similarity
.. autofunction:: pdist
.. autofunction:: binary_cross_entropy
binary_cross_entropy_with_logits
.. autofunction:: binary_cross_entropy_with_logits
.. autofunction:: poisson_nll_loss
.. autofunction:: cosine_embedding_loss
.. autofunction:: cross_entropy
.. autofunction:: ctc_loss
.. autofunction:: hinge_embedding_loss
.. autofunction:: kl_div
.. autofunction:: l1_loss
.. autofunction:: mse_loss
.. autofunction:: margin_ranking_loss
.. autofunction:: multilabel_margin_loss
multilabel_soft_margin_loss
.. autofunction:: multilabel_soft_margin_loss
.. autofunction:: multi_margin_loss
.. autofunction:: nll_loss
.. autofunction:: smooth_l1_loss
.. autofunction:: soft_margin_loss
.. autofunction:: triplet_margin_loss
.. autofunction:: pixel_shuffle
.. autofunction:: pad
.. autofunction:: interpolate
.. autofunction:: upsample
.. autofunction:: upsample_nearest
.. autofunction:: upsample_bilinear
.. autofunction:: grid_sample
.. autofunction:: affine_grid
DataParallel functions (multi-GPU, distributed)
.. autofunction:: torch.nn.parallel.data_parallel