Module loss
Expand description
Loss module
Structs§
- Binary
Cross Entropy Loss - Calculate the binary cross entropy loss from the input logits and the targets.
- Binary
Cross Entropy Loss Config - Configuration to create a Binary Cross-entropy loss using the init function.
- CTCLoss
- Computes the Connectionist Temporal Classification (CTC) loss.
- CTCLoss
Config - Configuration for the CTC Loss module.
- Cosine
Embedding Loss - Cosine embedding loss between two tensors.
- Cosine
Embedding Loss Config - Configuration for CosineEmbeddingLoss.
- Cross
Entropy Loss - Calculate the cross entropy loss from the input logits and the targets.
- Cross
Entropy Loss Config - Configuration to create a Cross-entropy loss using the init function.
- GaussianNLL
Loss - Negative log likelihood loss for a Gaussian target with predicted mean and variance,
following
torch.nn.GaussianNLLLoss. - GaussianNLL
Loss Config - Configuration to create a Gaussian NLL loss using the init function.
- Hinge
Embedding Loss - Measures the loss given an input tensor
xand a target tensory(each element1or-1), followingtorch.nn.HingeEmbeddingLoss. - Hinge
Embedding Loss Config - Configuration to create a Hinge Embedding loss using the init function.
- Huber
Loss - Calculate the Huber loss between the inputs and the target.
- Huber
Loss Config - Configuration to create a Huber loss.
- KLDiv
Loss - Kullback-Leibler Divergence Loss
- KLDiv
Loss Config - Configuration to create a KLDiv loss.
- LpLoss
- Computes the Lp Loss between predictions and targets.
- LpLoss
Config - Configuration for the Lp Loss module.
- Margin
Ranking Loss - Measures the loss for ranking two inputs, following
torch.nn.MarginRankingLoss. - Margin
Ranking Loss Config - Configuration to create a Margin Ranking loss.
- MseLoss
- Calculate the mean squared error loss from the input logits and the targets.
- Multi
Margin Loss - Multi-class classification margin (hinge) loss between input
xand target class indicesy, followingtorch.nn.MultiMarginLoss. - Multi
Margin Loss Config - Configuration to create a Multi Margin loss using the init function.
- Poisson
NllLoss - Negative Log Likelihood (NLL) loss with a Poisson distribution assumption for the target.
- Poisson
NllLoss Config - Configuration for creating a PoissonNllLoss instance.
- RNNT
Loss - RNN Transducer (RNNT) loss, as described in Sequence Transduction with Recurrent Neural Networks.
- RNNT
Loss Config - Configuration for RNNTLoss.
- Smooth
L1Loss - Computes the Smooth L1 Loss between predictions and targets.
- Smooth
L1Loss Config - Configuration for the SmoothL1Loss module.
- Soft
Margin Loss - Calculate the soft margin loss between the input logits and the target tensor.
- Triplet
Margin Loss - Measures the triplet loss given an anchor, a positive, and a negative input, following
torch.nn.TripletMarginLoss. - Triplet
Margin Loss Config - Configuration to create a Triplet Margin loss using the init function.
Enums§
- Reduction
- The reduction type for the loss.