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

Method init_model_input_cache

tools/python/micro/graph_builder.py:50–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 (0xffff0000 | (i & 0x0000ffff))
49
50 def init_model_input_cache(self):
51 self.model_input_cache = {}
52 for i in range(len(self.net_def.input_info)):
53 input_info = self.net_def.input_info[i]
54 self.model_input_cache[input_info.name] = \
55 (0xfffe0000 | (i & 0x0000ffff))
56
57 def build(self):
58 graph = micro_mem_pb2.Graph()

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected