def calculate_op_convert_info(
        self,
        seen_q_op_info: SeenQOpInfo,
    ) -> OpConvertInfo:
        """
        This precalculates the information which will be returned by
        `get_op_convert_info`.
        """
        # calculate quant infos
        (
            arg_quant_infos,
            any_arg_quant_or_dequant_needed,
        ) = get_input_args_quant_dequant_info(
            seen_q_op_info, self.tensor_id_to_scale_zp
        )

        return (
            arg_quant_infos,
            any_arg_quant_or_dequant_needed,
        )

        This precalculates the information which will be returned by
        `get_op_convert_info`.
        
intel_extension_for_pytorch/quantization/_quantization_state.py