1 write to OutProjLinear
Microsoft.ML.TorchSharp (1)
NasBert\Modules\MultiHeadAttention.cs (1)
101
OutProjLinear
= torch.nn.Linear(_embeddingDim, _embeddingDim, _addBiasProj);
4 references to OutProjLinear
Microsoft.ML.TorchSharp (4)
NasBert\Modules\MultiHeadAttention.cs (4)
123
ModelUtils.InitXavierUniform(
OutProjLinear
.weight);
130
ModelUtils.InitConstant(
OutProjLinear
.bias, 0);
296
var attentionOutput =
OutProjLinear
.forward(attention);
394
OutProjLinear
.Dispose();