Skip to content

Commit a44e131

Browse files
nihitb06justinormont
authored andcommitted
Updated ModelHeader.cs (#1277)
Changed The exception messages to remove TLC references in them. Added ML.NET reference in place of TLC
1 parent 7d9660a commit a44e131

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Microsoft.ML.Data/Model/ModelHeader.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,16 +350,16 @@ public static void CheckVersionInfo(ref ModelHeader header, VersionInfo ver)
350350
Contracts.CheckDecode(header.ModelSignature == ver.ModelSignature, "Unknown file type");
351351
Contracts.CheckDecode(header.ModelVerReadable <= header.ModelVerWritten, "Corrupt file header");
352352
if (header.ModelVerReadable > ver.VerWrittenCur)
353-
throw Contracts.ExceptDecode("Cause: TLC {0} cannont read component '{1}' of the model, because the model is too new.\n" +
354-
"Suggestion: Make sure the model is trained with TLC {0} or older.\n" +
353+
throw Contracts.ExceptDecode("Cause: ML.NET {0} cannont read component '{1}' of the model, because the model is too new.\n" +
354+
"Suggestion: Make sure the model is trained with ML.NET {0} or older.\n" +
355355
"Debug details: Maximum expected version {2}, got {3}.",
356356
typeof(VersionInfo).Assembly.GetName().Version, ver.LoaderSignature, header.ModelVerReadable, ver.VerWrittenCur);
357357
if (header.ModelVerWritten < ver.VerWeCanReadBack)
358358
{
359359
// Breaking backwards compatibility is something we should avoid if at all possible. If
360360
// this message is observed, it may be a bug.
361-
throw Contracts.ExceptDecode("Cause: TLC {0} cannot read component '{1}' of the model, because the model is too old.\n" +
362-
"Suggestion: Make sure the model is trained with TLC {0}.\n" +
361+
throw Contracts.ExceptDecode("Cause: ML.NET {0} cannot read component '{1}' of the model, because the model is too old.\n" +
362+
"Suggestion: Make sure the model is trained with ML.NET {0}.\n" +
363363
"Debug details: Minimum expected version {2}, got {3}.",
364364
typeof(VersionInfo).Assembly.GetName().Version, ver.LoaderSignature, header.ModelVerReadable, ver.VerWrittenCur);
365365
}

0 commit comments

Comments
 (0)