1 write to TokenEmbedding
Microsoft.ML.TorchSharp (1)
NasBert\Models\NasBertEncoder.cs (1)
85
TokenEmbedding
= torch.nn.Embedding(vocabSize, embedSize, paddingIdx);
6 references to TokenEmbedding
Microsoft.ML.TorchSharp (6)
NasBert\Models\NasBertEncoder.cs (6)
47
public Parameter TokenEmbeddingMatrix =>
TokenEmbedding
.weight;
98
ModelUtils.InitNormal(
TokenEmbedding
.weight, mean: 0.0, std: 0.02);
99
ModelUtils.InitZeros(
TokenEmbedding
.weight[paddingIdx]);
131
ModelUtils.FreezeModuleParams(
TokenEmbedding
);
199
var x =
TokenEmbedding
.forward(tokens);
294
TokenEmbedding
.Dispose();