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

Method gen_model_data

tools/python/micro/micro_codegen.py:103–107  ·  view source on GitHub ↗
(self, model_tag, model_param_data, output_path)

Source from the content-addressed store, hash-verified

101 output_path)
102
103 def gen_model_data(self, model_tag, model_param_data, output_path):
104 embed_data = np.frombuffer(model_param_data, dtype=np.uint8)
105 self.gen_micro_source_from_array(model_tag, embed_data,
106 'micro_model_data.h.jinja2',
107 output_path)
108
109 def gen_engine_factory(self, model_tag, output_path_h, output_path_cc):
110 self.gen_micro_source_from_bytes(model_tag, '',

Callers 1

gen_code_from_modelMethod · 0.80

Calls 1

Tested by

no test coverage detected