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

Method gen_net_def_data

tools/python/micro/micro_codegen.py:80–83  ·  view source on GitHub ↗
(self, model_tag, model_def_data, output_path)

Source from the content-addressed store, hash-verified

78 f.write(source)
79
80 def gen_net_def_data(self, model_tag, model_def_data, output_path):
81 embed_data = np.frombuffer(model_def_data, dtype=np.uint8)
82 self.gen_micro_source_from_array(model_tag, embed_data,
83 'micro_net_def.h.jinja2', output_path)
84
85 def gen_graph_data(self, model_tag, graph_data, output_path):
86 embed_data = np.frombuffer(graph_data, dtype=np.uint8)

Callers 1

gen_code_from_modelMethod · 0.80

Calls 1

Tested by

no test coverage detected