1 write to bias
Microsoft.ML.GenAI.Core (1)
Module\GenAILinear.cs (1)
28
this.
bias
= torch.zeros(outFeatures, dtype: dtype, device: device);
6 references to bias
Microsoft.ML.GenAI.Core (6)
Module\GenAILinear.cs (2)
45
if (this.
bias
is not null)
47
result = result + this.
bias
.to_type(ScalarType.Float32);
Module\QuantizedLinear.cs (4)
97
if (this.
bias
is not null)
99
result = result + this.
bias
.to_type(ScalarType.Float32);
124
if (this.
bias
is not null)
126
result = result + this.
bias
.to_type(ScalarType.Float32);