/** * \file lite/load_and_run/src/main.cpp * * This file is part of MegEngine, a deep learning framework developed by * Megvii. * * \copyright Copyright (c) 2020-2021 Megvii Inc. All rights reserved. */#include <gflags/gflags.h>#include <string>#include "strategys/strategy.h"intmain(intargc,char**argv){std::stringusage="load_and_run <model_path> [options...]";if(argc<2){printf("usage: %s\n",usage.c_str());return-1;}gflags::SetUsageMessage(usage);gflags::SetVersionString("1.0");gflags::ParseCommandLineFlags(&argc,&argv,true);std::stringmodel_path=argv[1];autostrategy=lar::StrategyBase::create_strategy(model_path);strategy->run();gflags::ShutDownCommandLineFlags();return0;}// vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}