code: def init_computer(self):
      self.free_mem_list = []
      self.used_mem_list = []
      self.buffer_size = 0
      self.ref_counts = {}
      for op in self.net_def.op:
          for tensor_name in op.input:
              if (
                  tensor_name in self.const_tensor_names
                  or tensor_name in self.input_names
              ):
                  continue
              if tensor_name not in self.ref_counts:
                  self.ref_counts[tensor_name] = 0
              self.ref_counts[tensor_name] += 1
  
file_path: mace/tools/python/micro/mem_computer.py
imports: from utils.convert_util import data_type_to_np_dt
  from utils.util import mace_check
  import numpy
label_desc: Use image node_id 2 for calling the MemComputer obj's underlying member method code with example usage: obj.init_computer() without return types