1 write to _addBiasProj
Microsoft.ML.TorchSharp (1)
NasBert\Modules\MultiHeadAttention.cs (1)
87
_addBiasProj
= bias;
5 references to _addBiasProj
Microsoft.ML.TorchSharp (5)
NasBert\Modules\MultiHeadAttention.cs (5)
91
QProjection = torch.nn.Linear(_embeddingDim, _embeddingDim,
_addBiasProj
);
92
KProjection = torch.nn.Linear(_kDim, _embeddingDim,
_addBiasProj
);
93
VProjection = torch.nn.Linear(_vDim, _embeddingDim,
_addBiasProj
);
101
OutProjLinear = torch.nn.Linear(_embeddingDim, _embeddingDim,
_addBiasProj
);
125
if (
_addBiasProj
)