1 write to HiddenTransfer
Microsoft.ML.TorchSharp (1)
NasBert\Modules\EmbedTransfer.cs (1)
76HiddenTransfer = torch.nn.Linear(embedSize, hiddenSize);
5 references to HiddenTransfer
Microsoft.ML.TorchSharp (5)
NasBert\Modules\EmbedTransfer.cs (5)
78ModelUtils.InitXavierUniform(HiddenTransfer.weight); 79ModelUtils.InitZeros(HiddenTransfer.bias); 88return HiddenTransfer == null 90: HiddenTransfer.forward(x); 99HiddenTransfer?.Dispose();