espnet2.asvspoof.loss.binary_loss.ASVSpoofBinaryLoss
Less than 1 minute
espnet2.asvspoof.loss.binary_loss.ASVSpoofBinaryLoss
class espnet2.asvspoof.loss.binary_loss.ASVSpoofBinaryLoss(weight: float = 1.0)
Bases: AbsASVSpoofLoss
Binary loss for ASV Spoofing.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
forward(pred: Tensor, label: Tensor, **kwargs)
Forward.
- Parameters:
- pred (torch.Tensor) – prediction probability [Batch, 2]
- label (torch.Tensor) – ground truth label [Batch, 2]
score(pred: Tensor)