2 writes to _numLeaf
Microsoft.ML.StandardTrainers (2)
LdSvm\LdSvmModelParameters.cs (2)
75
_numLeaf
= numLeaf;
106
_numLeaf
= ctx.Reader.ReadInt32();
26 references to _numLeaf
Microsoft.ML.StandardTrainers (26)
LdSvm\LdSvmModelParameters.cs (26)
107
Host.CheckDecode(
_numLeaf
> 1 && (
_numLeaf
& (
_numLeaf
- 1)) == 0);
113
_w = LoadVBufferArray(ctx,
_numLeaf
* 2 - 1, numFeatures);
114
_thetaPrime = LoadVBufferArray(ctx,
_numLeaf
* 2 - 1, numFeatures);
115
_theta = LoadVBufferArray(ctx,
_numLeaf
- 1, numFeatures);
116
_biasW = ctx.Reader.ReadFloatArray(
_numLeaf
* 2 - 1);
117
_biasTheta = ctx.Reader.ReadFloatArray(
_numLeaf
- 1);
118
_biasThetaPrime = ctx.Reader.ReadFloatArray(
_numLeaf
* 2 - 1);
128
Host.Assert(
_numLeaf
> 1 && (
_numLeaf
& (
_numLeaf
- 1)) == 0); // Check if _numLeaf is power of 2
129
Host.Assert(_w.Length ==
_numLeaf
* 2 - 1);
132
Host.Assert(_thetaPrime.Length ==
_numLeaf
* 2 - 1);
135
Host.Assert(_theta.Length ==
_numLeaf
- 1);
138
Host.Assert(_biasW.Length ==
_numLeaf
* 2 - 1);
139
Host.Assert(_biasTheta.Length ==
_numLeaf
- 1);
140
Host.Assert(_biasThetaPrime.Length ==
_numLeaf
* 2 - 1);
182
ctx.Writer.Write(
_numLeaf
);
186
Host.Assert(_w.Length ==
_numLeaf
* 2 - 1);
188
Host.Assert(_thetaPrime.Length ==
_numLeaf
* 2 - 1);
190
Host.Assert(_theta.Length ==
_numLeaf
- 1);
193
Host.Assert(_biasW.Length ==
_numLeaf
* 2 - 1);
195
Host.Assert(_biasTheta.Length ==
_numLeaf
- 1);
197
Host.Assert(_biasThetaPrime.Length ==
_numLeaf
* 2 - 1);
252
while (current <
_numLeaf
- 1)