
    h                     D    S SK rS SKJr   " S S\5      r " S S\5      rg)    N)OpRunReduceNumpyc                       \ rS rSrSS jrSrg)ReduceMean_1   Nc                     Ub  [        U5      OS n[        R                  " XX1R                  S9nUS:X  a5  [	        U[        R
                  5      (       d  [        R                  " U5      nU4$ )Naxiskeepdimsdtyper   )tuplenpmeanr   
isinstancendarrayarray)selfdataaxesr
   ress        [/var/www/fran/franai/venv/lib/python3.13/site-packages/onnx/reference/ops/op_reduce_mean.py_runReduceMean_1._run   sQ    ".uT{Dggd

Kq=C!<!<((3-Cv     )NN__name__
__module____qualname____firstlineno__r   __static_attributes__r   r   r   r   r      s    r   r   c                       \ rS rSrSS jrSrg)ReduceMean_18   Nc           
         U R                  U5      (       a
  U(       a  U4$ U R                  U5      nUS:g  n [        R                  " XX1R                  S9nUS:X  a5  [        U[        R                  5      (       d  [        R                  " U5      nU4$ ! [         a'  n[        SUR                  < SU< SU S35      UeS nAff = f)Nr   r   zUnable to reduce shape z with axes=z and keepdims=.)
is_axes_emptyhandle_axesr   r   r   r   r   r   	TypeErrorshape)r   r   r   r
   noop_with_empty_axesr   es          r   r   ReduceMean_18._run   s    d##(<7N%q=		''$HJJOC1}ZRZZ%@%@hhsm6M 	)$**{4(.YaXbbcd	s   AB 
C"CCr   )N   r   r   r   r   r   r"   r"      s    r   r"   )numpyr   onnx.reference.ops._opr   r   r"   r   r   r   <module>r0      s'     3# $ r   