§
    û¸¸jD  ã                   ó    —  G d „ d¦  «        Z dS )c                   ó    — e Zd Zd„ Zd„ Zd„ ZdS )ÚQuantOperatorBasec                 ó"   — || _         || _        d S )N)Ú	quantizerÚnode)ÚselfÚonnx_quantizerÚ	onnx_nodes      ú€/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/onnxruntime/quantization/operators/base_operator.pyÚ__init__zQuantOperatorBase.__init__   s   € Ø'ˆŒØˆŒ	ˆ	ˆ	ó    c                 ó˜   — | j                              | j        ¦  «        sdS | 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Ñ=Ô=ð 	Ø�5àŒ~×-Ò-¨d¬i¬o¸aÔ.@ÑAÔAÐAr   c                 ó  — t          | j        j        ¦  «        D ]@\  }}| j                             |¦  «        }|�| j        j                             |¦  «         ŒA| j        j                             | j        ¦  «         dS )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   s}   € õ ' t¤y¤Ñ7Ô7ð 	Að 	A‰MˆAˆzØ"œn×>Ò>¸zÑJÔJˆOØÐ*Ø”Ô(×/Ò/°Ñ@Ô@Ð@øð 	ŒÔ ×'Ò'¨¬	Ñ2Ô2Ð2Ð2Ð2r   N)Ú__name__Ú
__module__Ú__qualname__r   r   r   © r   r
   r   r      sD   € € € € € ðð ð ðBð Bð Bð3ð 3ð 3ð 3ð 3r   r   N)r   r   r   r
   ú<module>r       s7   ðð3ð 3ð 3ð 3ð 3ñ 3ô 3ð 3ð 3ð 3r   