1 write to QProjection
Microsoft.ML.TorchSharp (1)
NasBert\Modules\MultiHeadAttention.cs (1)
91
QProjection
= torch.nn.Linear(_embeddingDim, _embeddingDim, _addBiasProj);
7 references to QProjection
Microsoft.ML.TorchSharp (7)
NasBert\Modules\MultiHeadAttention.cs (7)
112
ModelUtils.InitXavierUniform(
QProjection
.weight, 1.0 / Math.Sqrt(2.0));
118
ModelUtils.InitXavierUniform(
QProjection
.weight);
127
ModelUtils.InitConstant(
QProjection
.bias, 0);
336
q =
QProjection
.forward(query);
342
q =
QProjection
.forward(query);
355
q =
QProjection
.forward(query);
389
QProjection
.Dispose();