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

Function convert_micro

tools/python/convert.py:49–58  ·  view source on GitHub ↗
(model_name, net_confs, net_def,
                  params, model_output)

Source from the content-addressed store, hash-verified

47
48
49def convert_micro(model_name, net_confs, net_def,
50 params, model_output):
51 mace_check(len(net_confs.items()) == 1,
52 "Multi graph not supported in Micro")
53 for graph_name, graph_conf in net_confs.items():
54 micro_converter = MicroConverter(graph_conf, copy.deepcopy(net_def),
55 copy.deepcopy(params), model_name)
56 micro_converter.gen_code()
57 micro_converter.package(model_output + "/" +
58 model_name + "_micro.tar.gz")
59
60
61def add_input_output_tensor(multi_net_def, model_conf):

Callers 1

convertFunction · 0.85

Calls 4

gen_codeMethod · 0.95
packageMethod · 0.95
mace_checkFunction · 0.90
MicroConverterClass · 0.90

Tested by

no test coverage detected