15 references to Check
Microsoft.ML.Core (15)
Data\ColumnTypeExtensions.cs (1)
37ectx.Check(count <= int.MaxValue, nameof(KeyDataViewType) + "." + nameof(KeyDataViewType.Count) + " exceeds int.MaxValue.");
Data\KeyTypeExtensions.cs (1)
20ectx.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");