15 references to Check
Microsoft.ML.Core (15)
Data\ColumnTypeExtensions.cs (1)
37
ectx.
Check
(count <= int.MaxValue, nameof(KeyDataViewType) + "." + nameof(KeyDataViewType.Count) + " exceeds int.MaxValue.");
Data\KeyTypeExtensions.cs (1)
20
ectx.
Check
(key.Count <= int.MaxValue, nameof(KeyDataViewType) + "." + nameof(KeyDataViewType.Count) + " exceeds int.MaxValue.");
Data\ModelLoading.cs (4)
135
_ectx.
Check
(InRepository, "Can't load a sub-model when reading from a single stream");
304
_ectx.
Check
(InRepository, "Can't Load a sub-model when reading from a single stream");
328
_ectx.
Check
(InRepository, "Can't Load a sub-model when reading from a single stream");
349
_ectx.
Check
(InRepository, "Can't Load a sub-model when reading from a single stream");
Data\ModelSaveContext.cs (3)
157
_ectx.
Check
(InRepository, "Can't save a text stream when writing to a single stream");
173
_ectx.
Check
(InRepository, "Can't save a text stream when writing to a single stream");
240
_ectx.
Check
(Header.ModelSignature != 0, "ModelSignature not specified!");
Data\ModelSaving.cs (2)
21
_ectx.
Check
(InRepository, "Can't save a sub-model when writing to a single stream");
80
_ectx.
Check
(InRepository, "Can't save a sub-model when writing to a single stream");
Data\ProgressReporter.cs (2)
74
_ectx.
Check
(!_isDisposed, "Can't report checkpoints after disposing");
94
_ectx.
Check
(iSrc == n, "Too many values provided in Checkpoint");
Data\ServerChannel.cs (2)
84
_chp.
Check
(_published == null, "Cannot expose more interfaces once a server channel has been published");
124
_chp.
Check
(_published == null, "Cannot republish once a server channel has been published");