Getting Started:
User Guide:
Developer Guide:
API Reference:
LibMTL
LibMTL.loss
LibMTL.utils
LibMTL.model
LibMTL.config
LibMTL.metrics
LibMTL.weighting
LibMTL.architecture
Bases: object
object
An abstract class for loss functions.
Calculate the loss.
pred (torch.Tensor) – The prediction tensor.
gt (torch.Tensor) – The ground-truth tensor.
The loss.
torch.Tensor
Bases: AbsLoss
AbsLoss
The cross-entropy loss function.
The Kullback-Leibler divergence loss function.
The Mean Absolute Error (MAE) loss function.
The Mean Squared Error (MSE) loss function.