From 4d87cdb2d02f9b9c049ca1926de673641541af39 Mon Sep 17 00:00:00 2001 From: nihitb06 Date: Wed, 17 Oct 2018 13:04:18 +0530 Subject: [PATCH] Updated ModelHeader.cs Changed The exception messages to remove TLC references in them. Added ML.NET reference in place of TLC --- src/Microsoft.ML.Data/Model/ModelHeader.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.ML.Data/Model/ModelHeader.cs b/src/Microsoft.ML.Data/Model/ModelHeader.cs index 37a5b9ac92..4f498be6ee 100644 --- a/src/Microsoft.ML.Data/Model/ModelHeader.cs +++ b/src/Microsoft.ML.Data/Model/ModelHeader.cs @@ -350,16 +350,16 @@ public static void CheckVersionInfo(ref ModelHeader header, VersionInfo ver) Contracts.CheckDecode(header.ModelSignature == ver.ModelSignature, "Unknown file type"); Contracts.CheckDecode(header.ModelVerReadable <= header.ModelVerWritten, "Corrupt file header"); if (header.ModelVerReadable > ver.VerWrittenCur) - throw Contracts.ExceptDecode("Cause: TLC {0} cannont read component '{1}' of the model, because the model is too new.\n" + - "Suggestion: Make sure the model is trained with TLC {0} or older.\n" + + throw Contracts.ExceptDecode("Cause: ML.NET {0} cannont read component '{1}' of the model, because the model is too new.\n" + + "Suggestion: Make sure the model is trained with ML.NET {0} or older.\n" + "Debug details: Maximum expected version {2}, got {3}.", typeof(VersionInfo).Assembly.GetName().Version, ver.LoaderSignature, header.ModelVerReadable, ver.VerWrittenCur); if (header.ModelVerWritten < ver.VerWeCanReadBack) { // Breaking backwards compatibility is something we should avoid if at all possible. If // this message is observed, it may be a bug. - throw Contracts.ExceptDecode("Cause: TLC {0} cannot read component '{1}' of the model, because the model is too old.\n" + - "Suggestion: Make sure the model is trained with TLC {0}.\n" + + throw Contracts.ExceptDecode("Cause: ML.NET {0} cannot read component '{1}' of the model, because the model is too old.\n" + + "Suggestion: Make sure the model is trained with ML.NET {0}.\n" + "Debug details: Minimum expected version {2}, got {3}.", typeof(VersionInfo).Assembly.GetName().Version, ver.LoaderSignature, header.ModelVerReadable, ver.VerWrittenCur); }