53 references to Size
Microsoft.ML.Core (53)
CommandLine\CmdParser.cs (4)
1272
Contracts.Assert(Utils.
Size
(genArgs) == 1);
1441
Contracts.Assert(!IsDefault || Utils.
Size
(ShortNames) == 0);
1728
return Utils.
Size
(ShortNames) != 0 ? ShortNames[0] : LongName;
2160
if (Utils.
Size
(ShortNames) != 0)
ComponentModel\AssemblyLoadingUtils.cs (1)
25
if (Utils.
Size
(assemblies) > 0)
ComponentModel\ComponentCatalog.cs (6)
209
Contracts.Assert(getter == null || Utils.
Size
(attr.CtorTypes) == 0);
236
Contracts.Assert(Utils.
Size
(ctorArgs) == CtorTypes.Length + ((RequireEnvironment) ? 1 : 0));
241
Contracts.Assert(Utils.
Size
(ctorArgs) == 0);
269
env.Check(Utils.
Size
(extra) == ExtraArgCount);
469
if (Utils.
Size
(parmTypes) == 0 && (getter = FindInstanceGetter(instType, loaderType)) != null)
1015
int carg = Utils.
Size
(extra);
ComponentModel\LoadableClassAttribute.cs (1)
168
if (Utils.
Size
(loadNames) == 0)
Data\ModelHeader.cs (2)
307
Contracts.Check(Utils.
Size
(bytes) >= Size);
374
Contracts.Check(Utils.
Size
(bytes) >= Size);
Data\ModelLoadContext.cs (3)
141
_ectx.CheckDecode(-1 <= id && id < Utils.
Size
(Strings));
153
Contracts.CheckDecode(0 <= id && id < Utils.
Size
(Strings));
164
_ectx.CheckDecode(0 <= id && id < Utils.
Size
(Strings));
Data\ProgressReporter.cs (1)
77
int n = Utils.
Size
(values);
Utilities\BigArray.cs (10)
244
int curLastBlockSize = Utils.
Size
(_entries[curBlockCount - 1]);
296
Contracts.Assert(Utils.
Size
(_entries) == 0);
304
Contracts.Assert(0 < miLim && miLim <= Utils.
Size
(_entries[maMax]));
305
if (Utils.
Size
(_entries[maMax]) != miLim)
407
Contracts.Assert(miLim <= Utils.
Size
(_entries[maMax]));
413
Contracts.Assert(BlockSize <= Utils.
Size
(_entries[maMin]));
415
Contracts.Assert(miLim <= Utils.
Size
(_entries[maMax]));
423
Contracts.Assert(BlockSize <= Utils.
Size
(_entries[maMin]));
429
Contracts.Assert(BlockSize <= Utils.
Size
(_entries[major]));
436
Contracts.Assert(miLim <= Utils.
Size
(_entries[maMax]));
Utilities\BinFinder.cs (9)
38
if (Utils.
Size
(_path) < CountBins + 1)
43
if (Utils.
Size
(_valuesSng) < numValues)
116
if (Utils.
Size
(_path) < CountBins + 1)
121
if (Utils.
Size
(_valuesDbl) < numValues)
337
if (Utils.
Size
(_accum) < CountValues + 1)
575
if (Utils.
Size
(_accum) < CountValues + 1)
586
if (Utils.
Size
(_energies) < sizeEnergy)
592
if (Utils.
Size
(_pathInfo) < sizeInfo)
594
if (Utils.
Size
(_cols) < width)
Utilities\FixedSizeQueue.cs (1)
33
Contracts.Assert(Utils.
Size
(_array) >= 0);
Utilities\HashArray.cs (5)
65
Contracts.Assert(0 <= _ct && _ct <= Utils.
Size
(_entries));
69
Contracts.Assert(Utils.
Size
(_rgit) >= _ct || Utils.
Size
(_rgit) == HashHelpers.MaxPrimeArrayLength);
153
if (_ct >= Utils.
Size
(_entries))
155
Contracts.Assert(_ct == Utils.
Size
(_entries));
Utilities\Hashing.cs (1)
346
Contracts.Check(lim <= Utils.
Size
(data));
Utilities\MathUtils.cs (1)
706
Contracts.Assert(Utils.
Size
(src) >= count);
Utilities\NormStr.cs (3)
76
Contracts.Assert(0 <= _cns && _cns <= Utils.
Size
(_rgns));
77
Contracts.Assert(Utils.
Size
(_rgns) == Utils.
Size
(_rgmeta));
Utilities\Stream.cs (2)
149
Contracts.Assert(0 <= count && count <= Utils.
Size
(values));
162
Contracts.Assert(0 <= count && count <= Utils.
Size
(values));
Utilities\SupervisedBinFinder.cs (2)
107
Contracts.Assert(Utils.
Size
(boundaries) > 0);
185
Contracts.Assert(Utils.
Size
(boundaries) > 0);
Utilities\Utils.cs (1)
904
int cv = Utils.
Size
(a);