diff --git a/lite/model_parser/model_parser.cc b/lite/model_parser/model_parser.cc index e96ddce7c0e686f13d1bfdb021ab40bd093a70f8..13e5b44438a715107e2f0ce686a7cff570ed541e 100644 --- a/lite/model_parser/model_parser.cc +++ b/lite/model_parser/model_parser.cc @@ -1000,14 +1000,17 @@ void LoadModelNaiveFromMemory(const std::string &model_buffer, #ifndef LITE_ON_TINY_PUBLISH LoadModelNaiveV0FromMemory(model_buffer, scope, cpp_prog); #else - LOG(FATAL) << "Error: Unsupported model type."; + LOG(FATAL) << "Paddle-Lite v2.7 has upgraded the naive-buffer model " + "format. Please use the OPT to generate a new model. " + "Thanks!"; #endif break; case 1: LoadModelNaiveV1FromMemory(model_buffer, scope, cpp_prog); break; default: - LOG(FATAL) << "Error: Unsupported model type."; + LOG(FATAL) << "The model format cannot be recognized. Please make sure " + "you use the correct interface and model file."; break; } }