26 arser.add_argument(
"tflite").help(
"TFLite file to dump");
30 arser.parse(argc, argv);
32 catch (
const std::runtime_error &err)
34 std::cout << err.what() <<
'\n';
39 std::string tflite_path =
arser.get<std::string>(
"tflite");
42 std::vector<char> modelData = fileLoader.
load();
43 const tflite::Model *tflmodel = tflite::GetModel(modelData.data());
44 if (tflmodel ==
nullptr)
46 std::cerr <<
"ERROR: Failed to load tflite '" << tflite_path <<
"'" << std::endl;
50 std::cout <<
"Dump: " << tflite_path << std::endl << std::endl;
53 modelex.
model = tflmodel;
56 std::cout << modelex << std::endl;