1 write to InHiddenTransfer
Microsoft.ML.TorchSharp (1)
NasBert\Modules\HiddenTransfer.cs (1)
35InHiddenTransfer = torch.nn.Linear(hiddenSize1, hiddenSize2);
5 references to InHiddenTransfer
Microsoft.ML.TorchSharp (5)
NasBert\Modules\HiddenTransfer.cs (5)
37ModelUtils.InitNormal(InHiddenTransfer.weight, mean: 0.0, std: 0.02); 38ModelUtils.InitZeros(InHiddenTransfer.bias); 47return (!inputTransfer && InHiddenTransfer != null) 48? InHiddenTransfer.forward(x) 58InHiddenTransfer?.Dispose();