11 references to Size
Microsoft.ML.Core.Tests (1)
UnitTests\CoreBaseTestClass.cs (1)
292
Fail("{0} id collisions among {1} items", idCollisions, Utils.
Size
(idsSeen) + idCollisions);
Microsoft.ML.Data (8)
Commands\TypeInfoCommand.cs (3)
124
ch.Assert(Utils.
Size
(dsts) >= 1);
125
ch.Assert(Utils.
Size
(srcs) >= 1);
132
if (Utils.
Size
(nonIdentity) > 0)
DataView\CacheDataView.cs (2)
345
if (Utils.
Size
(taskColumns) == 0 && _cacheDefaultWaiter != null)
353
caches = new ColumnCache[Utils.
Size
(taskColumns)];
Transforms\InvertHashUtils.cs (1)
192
Contracts.Assert(Utils.
Size
(pairs) > 0);
Transforms\ValueToKeyMappingTransformer.cs (2)
579
ch.Assert((Utils.
Size
(toTrain) == 0) == (trainsNeeded == 0));
580
ch.Assert(Utils.
Size
(toTrain) <= trainsNeeded);
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipeBase.cs (1)
749
Fail("{0} id collisions among {1} items", idCollisions, Utils.
Size
(idsSeen) + idCollisions);
Microsoft.ML.Transforms (1)
Text\NgramHashingTransformer.cs (1)
224
if (Utils.
Size
(columnWithInvertHash) > 0)