parameters: (self, origin_op, fake_quant_cell)
docstring: add output quant info for quant op for export mindir.
docstring_summary: add output quant info for quant op for export mindir.
docstring_tokens: add output quant info for quant op for export mindir .
function: def _add_output_min_max_for_op(self, origin_op, fake_quant_cell):
          """add output quant info for quant op for export mindir."""
          if self.is_mindir:
              if isinstance(origin_op, ops.Primitive) and not hasattr(origin_op, 'output_minq'):
                  np_type = mstype.dtype_to_nptype(self.data_type)
                  _, _, maxq, minq = quant_utils.scale_zp_max_min_from_fake_quant_cell(fake_quant_cell, np_type)
                  origin_op.add_prim_attr('output_maxq', Tensor(maxq))
                  origin_op.add_prim_attr('output_minq', Tensor(minq))
function_tokens: def _add_output_min_max_for_op ( self , origin_op , fake_quant_cell ) : if self . is_mindir : if isinstance ( origin_op , ops . Primitive ) and not hasattr ( origin_op , 'output_minq' ) : np_type = mstype . dtype_to_nptype ( self . data_type ) _ , _ , maxq , minq = quant_utils . scale_zp_max_min_from_fake_quant_cell ( fake_quant_cell , np_type ) origin_op . add_prim_attr ( 'output_maxq' , Tensor ( maxq ) ) origin_op . add_prim_attr ( 'output_minq' , Tensor ( minq ) )