2 references to Concat
Microsoft.ML.TorchSharp (2)
Roberta\Models\RobertaModel.cs (2)
116
var position = torch.tensor(DataUtils.
Concat
<int>(Positions.AsSpan(0, allSize), Zeros.AsSpan(0, size - allSize)),
121
var attentionMask = torch.tensor(DataUtils.
Concat
<int>(Zeros.AsSpan(0, allSize), NegBillionPad.AsSpan(0, size - allSize)),