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