MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle-Lite / PrintPbModelErrorMessage

Function PrintPbModelErrorMessage

lite/model_parser/model_parser.cc:133–146  ·  view source on GitHub ↗

Print error message about LoadModelPb

Source from the content-addressed store, hash-verified

131
132// Print error message about LoadModelPb
133void PrintPbModelErrorMessage() {
134 LOG(FATAL) << "\n Error, Unsupported model format!\n"
135 << " 1. contents in model directory should be in one of "
136 "these formats:\n"
137 << " (1) __model__ + var1 + var2 + etc.\n"
138 << " (2) model + var1 + var2 + etc.\n"
139 << " (3) model.pdmodel + model.pdiparams\n"
140 << " (4) model + params\n"
141 << " (5) model + weights\n"
142 << " 2. You can also appoint the model and params file in "
143 "custom format:\n"
144 << " eg. |-- set_model_file('custom_model_name')\n"
145 << " |-- set_param_file('custom_params_name')'";
146}
147// Find correct model filename
148std::string FindModelFileName(const std::string &model_dir,
149 const std::string &model_file,

Callers 2

FindModelFileNameFunction · 0.85
LoadNonCombinedParamsPbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected