espnet2.enh.loss.criterions.tf_domain.FrequencyDomainL1
Less than 1 minute
espnet2.enh.loss.criterions.tf_domain.FrequencyDomainL1
class espnet2.enh.loss.criterions.tf_domain.FrequencyDomainL1(compute_on_mask=False, mask_type='IBM', name=None, only_for_test=False, is_noise_loss=False, is_dereverb_loss=False)
Bases: FrequencyDomainLoss
Initializes internal Module state, shared by both nn.Module and ScriptModule.
property compute_on_mask : bool
forward(ref, inf) → Tensor
time-frequency L1 loss.
- Parameters:
- ref – (Batch, T, F) or (Batch, T, C, F)
- inf – (Batch, T, F) or (Batch, T, C, F)
- Returns: (Batch,)
- Return type: loss
property mask_type : str