Ë
    cQêjD  ã                   ó   —  G d „ d«      Z y)c                   ó   — e Zd Zd„ Zd„ Zd„ Zy)ÚQuantOperatorBasec                 ó    — || _         || _        y )N)Ú	quantizerÚnode)ÚselfÚonnx_quantizerÚ	onnx_nodes      úu/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/onnxruntime/quantization/operators/base_operator.pyÚ__init__zQuantOperatorBase.__init__   s   € Ø'ˆŒØˆ�	ó    c                 ó²   — | j                   j                  | j                  «      sy| j                   j                  | j                  j                  d   «      S )NFé    )r   Úshould_quantize_noder   Úis_float_tensorÚinput)r   s    r
   Úshould_quantizez!QuantOperatorBase.should_quantize   s=   € Ø�~‰~×2Ñ2°4·9±9Ô=Øà�~‰~×-Ñ-¨d¯i©i¯o©o¸aÑ.@ÓAÐAr   c                 ó6  — t        | j                  j                  «      D ]H  \  }}| j                  j	                  |«      }|€Œ$| j                  j
                  j                  |«       ŒJ | j                  j
                  j                  | j                  «       y)a‡  
        Given a node which does not support quantization, this method checks whether the input to
        this node is quantized and adds a DequantizeLinear node to dequantize this input back to FP32
            parameter node: Current node
            parameter new_nodes_list: List of new nodes created before processing current node
            return: List of new nodes created
        N)Ú	enumerater   r   r   Ú_dequantize_valueÚ	new_nodesÚappend)r   Ú_Ú
node_inputÚdequantize_nodes       r
   ÚquantizezQuantOperatorBase.quantize   sv   € ô ' t§y¡y§¡Ó7ò 	A‰MˆAˆzØ"Ÿn™n×>Ñ>¸zÓJˆOØÑ*Ø—‘×(Ñ(×/Ñ/°Õ@ð	Að 	�‰× Ñ ×'Ñ'¨¯	©	Õ2r   N)Ú__name__Ú
__module__Ú__qualname__r   r   r   © r   r
   r   r      s   „ òòBó3r   r   N)r   r   r   r
   ú<module>r       s   ð÷3ò 3r   