1 write to Ones
Microsoft.ML.TorchSharp (1)
Roberta\Models\RobertaModel.cs (1)
45Ones = Enumerable.Repeat(1, options.MaxSequenceLength).ToArray();
1 reference to Ones
Microsoft.ML.TorchSharp (1)
Roberta\Models\RobertaModel.cs (1)
119torch.tensor(DataUtils.Concat<int>(Zeros.AsSpan(0, questionSize + 2), Ones.AsSpan(0, allSize - questionSize - 2), Zeros.AsSpan(0, size - allSize)),