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