
    bIg                    P    d dl mZ d dlZd dlmZ  G d de      Z G d de      Zy)    )annotationsN)OpRunReduceNumpyc                      e Zd ZddZy)
ReduceL1_1Nc                   |t        |      nd }t        j                  t        j                  |      ||      j	                  |j
                        }|dk(  r/t        |t        j                        st        j                  |      }|fS )Naxiskeepdimsdtyper   )	tuplenpsumabsastyper   
isinstancendarrayarray)selfdataaxesr
   ress        \/var/www/html/answerous/venv/lib/python3.12/site-packages/onnx/reference/ops/op_reduce_l1.py_runzReduceL1_1._run   sn    ".uT{DffRVVD\x@GG** H 
 q=C!<((3-Cv    )NN__name__
__module____qualname__r    r   r   r   r      s    r   r   c                      e Zd ZddZy)ReduceL1_18Nc                R   | j                  |      r|r|fS | j                  |      }|dk7  }t        j                  t        j                  |      ||      j                  |j                        }|dk(  r/t        |t        j                        st        j                  |      }|fS )Nr   r   r   )
is_axes_emptyhandle_axesr   r   r   r   r   r   r   r   )r   r   r   r
   noop_with_empty_axesr   s         r   r   zReduceL1_18._run   s    d#(<7N%q=ffRVVD\x@GG** H 
 q=C!<((3-Cvr   )N   r   r   r    r   r   r"   r"      s    r   r"   )
__future__r   numpyr   onnx.reference.ops._opr   r   r"   r    r   r   <module>r+      s*    #  3	! 	" r   