1 write to alpha
Microsoft.ML.TorchSharp (1)
Loss\FocalLoss.cs (1)
31this.alpha = alpha;
2 references to alpha
Microsoft.ML.TorchSharp (2)
Loss\FocalLoss.cs (2)
62var alphaFactor = this.alpha * torch.ones(classification.shape, dtype: ScalarType.Float32, device: classifications.device); 99var alphaFactor = torch.ones(targets.shape, dtype: ScalarType.Float32, device: classifications.device) * alpha;