
    
Ng                     R    d dl Zd dlmZ  G d de          Z G d de          ZdS )    N)OpRunReduceNumpyc                       e Zd ZddZdS )
ReduceL1_1Nc                    |t          |          nd }t          j        t          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/ai-engine/env/lib/python3.11/site-packages/onnx/reference/ops/op_reduce_l1.py_runzReduceL1_1._run   s~    ".uT{{{DfRVD\\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dS )ReduceL1_18N   r   c                 ^   |                      |          r|r|fS |                     |          }|dk    }t          j        t          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=fRVD\\x@@@GG* H 
 
 q==C!<!<=(3--Cvr   )Nr"   r   r   r   r   r   r!   r!      s(             r   r!   )numpyr   onnx.reference.ops._opr   r   r!   r   r   r   <module>r)      s        3 3 3 3 3 3	 	 	 	 	! 	 	 	    "     r   