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