code: def add_op_output_type(self):
      type_map = {}
      for input_info in self._model.input_info:
          # will do input quantize in wrapper
          if (
              self._option.quantize_schema
              == "mace_apu_16bit_per_tensor"
          ):
              type_map[input_info.name] = mace_pb2.DT_INT16
          elif self._option.quantize:
              type_map[input_info.name] = mace_pb2.DT_UINT8
          else:
              type_map[input_info.name] = mace_pb2.DT_FLOAT
  
      for op in self._model.op:
          if len(op.output_type) >= 1:
              print([op.name, len(op.output), len(op.output_type)])
              type_map[op.output[0]] = op.output_type[0]
              continue
          input_type = self.get_input_type(op, type_map)
          op.output_type.extend([input_type])
          type_map[op.output[0]] = op.output_type[0]
  
      for op in self._model.op:
          mace_check(
              len(op.output) == len(op.output_type),
              op.name + ": length of output and output_type not"
              " match",
          )
          mace_check(
              op.output_type[0] == mace_pb2.DT_UINT8
              or op.output_type[0] == mace_pb2.DT_INT16
              or op.output_type[0] == mace_pb2.DT_INT32
              or op.output_type[0] == mace_pb2.DT_FLOAT,
              op.name + ": apu only support quantized or float16"
              " node",
          )
  
imports: import copy
  import numpy
  from enum import Enum
  from operator import mul
  from py_proto import mace_pb2
  from transform import base_converter
  from transform.base_converter import ConverterUtil
  from transform.base_converter import EltwiseType
  from transform.base_converter import MaceKeyword
  from transform.base_converter import MaceOp
  from transform.base_converter import PaddingMode
  from transform.base_converter import PadType
  from transform.base_converter import PoolingType
  from transform.base_converter import ReduceType
  from transform.base_converter import DataFormat
  from transform.base_converter import FrameworkType
  from utils.util import mace_check
label_desc: Use image node_id 6 for calling the ApuConverter obj's underlying member method code with example usage: obj.add_op_output_type() without return types