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

Method gen_graph_data

tools/python/micro/micro_codegen.py:85–89  ·  view source on GitHub ↗
(self, model_tag, graph_data, output_path)

Source from the content-addressed store, hash-verified

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)
87 self.gen_micro_source_from_array(model_tag, embed_data,
88 'micro_graph_data.h.jinja2',
89 output_path)
90
91 def gen_ops_data(self, model_tag, op_src_path_list,
92 op_class_name_list, output_path):

Callers 1

gen_code_from_modelMethod · 0.80

Calls 1

Tested by

no test coverage detected