1 write to PadTokenIndex
Microsoft.ML.TorchSharp (1)
NasBert\Modules\Embedding\PositionalEmbedding.cs (1)
26
PadTokenIndex
= padTokenIndex;
2 references to PadTokenIndex
Microsoft.ML.TorchSharp (2)
NasBert\Modules\Embedding\LearnedPositionalEmbedding.cs (1)
50
: MakePositions(input,
PadTokenIndex
);
NasBert\Modules\Embedding\SinusoidalPositionalEmbedding.cs (1)
105
var positions = MakePositions(input,
PadTokenIndex
).view(-1);