MCPcopy Create free account
hub / github.com/XiaoMi/mace / build_engine

Function build_engine

tools/python/run_model.py:57–67  ·  view source on GitHub ↗
(flags)

Source from the content-addressed store, hash-verified

55
56
57def build_engine(flags):
58 cmake_shell = os.path.abspath(
59 os.path.dirname(
60 __file__)) + "/../cmake/cmake-build-%s.sh" % flags.target_abi
61 os.environ["BUILD_DIR"] = flags.build_dir + "/" + flags.target_abi
62 if flags.runtime:
63 os.environ["RUNTIME"] = config_parser.parse_device_type(
64 flags.runtime).name
65 if flags.gencode_model:
66 os.environ["RUNMODE"] = "code"
67 device.execute("bash " + cmake_shell)
68
69
70def run_models(flags, args):

Callers 1

run_model.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected