20 references to CheckParam
Microsoft.ML.Core (20)
CommandLine\CharCursor.cs (2)
35Contracts.CheckParam(0 <= min && min <= Utils.Size(text), nameof(min)); 36Contracts.CheckParam(min <= lim && lim <= Utils.Size(text), nameof(lim));
CommandLine\CmdParser.cs (1)
464Contracts.CheckParam(type.IsClass, nameof(type));
Data\AnnotationUtils.cs (1)
301Contracts.CheckParam(vectorSize >= 0, nameof(vectorSize));
Data\ModelHeader.cs (2)
132Contracts.CheckParam(fpMin >= 0, nameof(fpMin)); 200Contracts.CheckParam(fpMin >= 0, nameof(fpMin));
Data\ProgressReporter.cs (2)
588Contracts.CheckParam(index >= 0, nameof(index)); 602Contracts.CheckParam(index >= 0, nameof(index));
Utilities\HybridMemoryStream.cs (2)
215Contracts.CheckParam(0 <= offset && offset <= buffer.Length, nameof(offset)); 216Contracts.CheckParam(0 <= count && count <= buffer.Length - offset, nameof(count));
Utilities\NormStr.cs (1)
247Contracts.CheckParam(0 <= id && id < _cns, nameof(id));
Utilities\Utils.cs (4)
730Contracts.CheckParam(length >= 0, nameof(length)); 744Contracts.CheckParam(length >= 0, nameof(length)); 804Contracts.CheckParam(lim >= 0, nameof(lim)); 839Contracts.CheckParam(lim >= 0, nameof(lim));
Utilities\VBufferUtils.cs (5)
69Contracts.CheckParam(length >= 0, nameof(length)); 75Contracts.CheckParam(length >= 0, nameof(length)); 304Contracts.CheckParam(0 <= slot && slot < dst.Length, nameof(slot)); 450Contracts.CheckParam(0 < sparsityThreshold && sparsityThreshold < 1, nameof(sparsityThreshold)); 1353Contracts.CheckParam(0 <= length && length <= Utils.Size(src), nameof(length));