8 references to InitZeros
Microsoft.ML.TorchSharp (8)
NasBert\Models\NasBertEncoder.cs (1)
99
ModelUtils.
InitZeros
(TokenEmbedding.weight[paddingIdx]);
NasBert\Models\PredictionHead.cs (1)
24
ModelUtils.
InitZeros
(dense.bias);
NasBert\Models\SequenceLabelHead.cs (1)
26
ModelUtils.
InitZeros
(dense.bias);
NasBert\Modules\Embedding\LearnedPositionalEmbedding.cs (1)
29
ModelUtils.
InitZeros
(Embedding.weight[PadPositionIndex]);
NasBert\Modules\EmbedTransfer.cs (1)
79
ModelUtils.
InitZeros
(HiddenTransfer.bias);
NasBert\Modules\HiddenTransfer.cs (1)
38
ModelUtils.
InitZeros
(InHiddenTransfer.bias);
NasBert\Modules\Layers\FeedForwardLayer.cs (2)
49
ModelUtils.
InitZeros
(fullConnected1.bias);
51
ModelUtils.
InitZeros
(fullConnected2.bias);