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