load_load_from_file should load model from {nnpackage path + model path}.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
auto model = nnfw::cpp14::make_unique<neurun::model::Model>();
_graph = std::make_shared<neurun::graph::Graph>(std::move(model));
tflite_loader::Loader loader(*_graph);
- loader.loadFromFile(models[0].asString().c_str() /*first model*/);
+ auto model_file_path = package_dir + std::string("/") + models[0].asString(); // first model
+ loader.loadFromFile(model_file_path.c_str());
}
catch (...)
{