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

Method init_const_tensor_cache

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

Source from the content-addressed store, hash-verified

41 self.output_cache[tensor_name] = output_info_uint
42
43 def init_const_tensor_cache(self):
44 self.const_tensor_cache = {}
45 for i in range(len(self.net_def.tensors)):
46 const_tensor = self.net_def.tensors[i]
47 self.const_tensor_cache[const_tensor.name] = \
48 (0xffff0000 | (i & 0x0000ffff))
49
50 def init_model_input_cache(self):
51 self.model_input_cache = {}

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected