1 write to VProjection
Microsoft.ML.TorchSharp (1)
NasBert\Modules\MultiHeadAttention.cs (1)
93
VProjection
= torch.nn.Linear(_vDim, _embeddingDim, _addBiasProj);
7 references to VProjection
Microsoft.ML.TorchSharp (7)
NasBert\Modules\MultiHeadAttention.cs (7)
114
ModelUtils.InitXavierUniform(
VProjection
.weight, 1.0 / Math.Sqrt(2.0));
120
ModelUtils.InitXavierUniform(
VProjection
.weight);
129
ModelUtils.InitConstant(
VProjection
.bias, 0);
338
v =
VProjection
.forward(query);
350
v =
VProjection
.forward(key);
357
v =
VProjection
.forward(value);
391
VProjection
.Dispose();