1 write to position_embeddings
Microsoft.ML.TorchSharp (1)
Roberta\Modules\Embeddings.cs (1)
26
position_embeddings
= torch.nn.Embedding(maxPositions, embeddingSize);
2 references to position_embeddings
Microsoft.ML.TorchSharp (2)
Roberta\Modules\Embeddings.cs (2)
38
var positionEmbedding =
position_embeddings
.forward(positions);
53
position_embeddings
.Dispose();