kaira.losses.audio.L1AudioLoss

Inheritance diagram of L1AudioLoss

Inheritance diagram for L1AudioLoss

class kaira.losses.audio.L1AudioLoss[source]

Bases: BaseLoss

L1 Audio Loss Module.

This module calculates the L1 loss between the input and target audio signals.

Methods

__init__

Initialize the L1AudioLoss module.

forward

Forward pass through the L1AudioLoss module.

__init__()[source]

Initialize the L1AudioLoss module.

forward(x: Tensor, target: Tensor) Tensor[source]

Forward pass through the L1AudioLoss module.

Parameters:
Returns:

The L1 loss between the input and target audio.

Return type:

torch.Tensor