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