(self)
| 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 = {} |