From f4496528e38684b4482636998bf4bb63d5dd3140 Mon Sep 17 00:00:00 2001 From: Priya Ramani Date: Fri, 27 Aug 2021 22:50:20 -0700 Subject: [PATCH] [Light] Fix error message (#64010) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/64010 Fixing typos in a error message Test Plan: Error message before fix: Lite Interpreter verson number does not match. The model version must be between 3 and 5But the model version is 6 Error message after fix: Lite Interpreter version number does not match. The model version must be between 3 and 5 but the model version is 6 Reviewed By: larryliu0820 Differential Revision: D30568367 fbshipit-source-id: 205f3278ee8dcf38579dbb828580a9e986ccacc1 --- torch/csrc/jit/mobile/import.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torch/csrc/jit/mobile/import.cpp b/torch/csrc/jit/mobile/import.cpp index db9f0b8..d2865d0 100644 --- a/torch/csrc/jit/mobile/import.cpp +++ b/torch/csrc/jit/mobile/import.cpp @@ -317,12 +317,12 @@ void BytecodeDeserializer::parseMethods( caffe2::serialize::kMinSupportedBytecodeVersion <= model_version && // NOLINTNEXTLINE(clang-diagnostic-sign-compare) model_version <= caffe2::serialize::kMaxSupportedBytecodeVersion, - "Lite Interpreter verson number does not match. ", + "Lite Interpreter version number does not match. ", "The model version must be between ", caffe2::serialize::kMinSupportedBytecodeVersion, " and ", caffe2::serialize::kMaxSupportedBytecodeVersion, - "But the model version is ", + " but the model version is ", model_version); bool has_debug_handles = debug_handles.has_value(); -- 2.7.4