10 references to CheckDecode
Microsoft.ML.Core (7)
Data\ModelHeader.cs (7)
351
Contracts.
CheckDecode
(header.ModelSignature == ver.ModelSignature, "Unknown file type");
352
Contracts.
CheckDecode
(header.ModelVerReadable <= header.ModelVerWritten, "Corrupt file header");
392
Contracts.
CheckDecode
(header.Signature == SignatureValue, "Wrong file type");
393
Contracts.
CheckDecode
(header.VerReadable <= header.VerWritten, "Corrupt file header");
394
Contracts.
CheckDecode
(header.VerReadable <= VerWrittenCur, "File is too new");
395
Contracts.
CheckDecode
(header.VerWritten >= VerWeCanReadBack, "File is too old");
554
Contracts.
CheckDecode
(tail == TailSignatureValue, "Corrupt model file tail");
Microsoft.ML.Data (2)
DataLoadSave\Binary\CodecFactory.cs (2)
162
Contracts.
CheckDecode
(!string.IsNullOrEmpty(signature), "Non-empty signature string expected");
164
Contracts.
CheckDecode
(ulen <= long.MaxValue, "Codec type definition read from stream too large");
Microsoft.ML.FastTree (1)
TreeEnsemble\InternalRegressionTree.cs (1)
313
CheckValid(Contracts.
CheckDecode
);