When they cannot load a model file due to file types,
don't just tell you cannot load it.
Tell more about it along with the file path.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
#endif
if (!g_file_test (model_path, G_FILE_TEST_IS_REGULAR)) {
- g_critical ("the file of model_path is not valid.");
+ g_critical ("the file of model_path (%s) is not valid (not regular).", model_path);
return -1;
}
GraphDef graph_def;
if (!g_file_test (model_path, G_FILE_TEST_IS_REGULAR)) {
- g_critical ("the file of model_path is not valid\n");
+ g_critical ("the file of model_path (%s) is not valid (not regular)\n", model_path);
return -1;
}
status = ReadBinaryProto (Env::Default (), model_path, &graph_def);
if (!interpreter) {
if (!g_file_test (model_path, G_FILE_TEST_IS_REGULAR)) {
- g_critical ("the file of model_path is not valid\n");
+ g_critical ("the file of model_path (%s) is not valid (not regular)\n", model_path);
return -1;
}
model =