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