1 write to NegBillionPad
Microsoft.ML.TorchSharp (1)
Roberta\Models\RobertaModel.cs (1)
46NegBillionPad = Enumerable.Repeat(negBillion, options.MaxSequenceLength).ToArray();
1 reference to NegBillionPad
Microsoft.ML.TorchSharp (1)
Roberta\Models\RobertaModel.cs (1)
121var attentionMask = torch.tensor(DataUtils.Concat<int>(Zeros.AsSpan(0, allSize), NegBillionPad.AsSpan(0, size - allSize)),