1 write to word_embeddings
Microsoft.ML.TorchSharp (1)
Roberta\Modules\Embeddings.cs (1)
25
word_embeddings
= torch.nn.Embedding(numEmbeddings, embeddingSize, padding_idx: 1);
2 references to word_embeddings
Microsoft.ML.TorchSharp (2)
Roberta\Modules\Embeddings.cs (2)
37
var tokenEmbedding =
word_embeddings
.forward(tokens);
52
word_embeddings
.Dispose();