kaira.losses.audio.L1AudioLoss

Inheritance diagram for L1AudioLoss
- class kaira.losses.audio.L1AudioLoss[source]
Bases:
BaseLossL1 Audio Loss Module.
This module calculates the L1 loss between the input and target audio signals.
Methods
Initialize the L1AudioLoss module.
Forward pass through the L1AudioLoss module.
- forward(x: Tensor, target: Tensor) Tensor[source]
Forward pass through the L1AudioLoss module.
- Parameters:
x (torch.Tensor) – The input audio tensor.
target (torch.Tensor) – The target audio tensor.
- Returns:
The L1 loss between the input and target audio.
- Return type: