1 write to Positions
Microsoft.ML.TorchSharp (1)
Roberta\Models\RobertaModel.cs (1)
43
Positions
= Enumerable.Range(0, options.MaxSequenceLength).ToArray();
1 reference to Positions
Microsoft.ML.TorchSharp (1)
Roberta\Models\RobertaModel.cs (1)
116
var position = torch.tensor(DataUtils.Concat<int>(
Positions
.AsSpan(0, allSize), Zeros.AsSpan(0, size - allSize)),