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