
    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)ReduceSumSquare_1   Nc                     Ub  [        U5      OS n[        R                  " [        R                  " U5      X#S9nUS:X  a5  [	        U[        R
                  5      (       d  [        R                  " U5      nU4$ )Naxiskeepdimsr   )tuplenpsumsquare
isinstancendarrayarray)selfdataaxesr
   ress        a/var/www/fran/franai/venv/lib/python3.13/site-packages/onnx/reference/ops/op_reduce_sum_square.py_runReduceSumSquare_1._run   sU    ".uT{DffRYYt_4C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)ReduceSumSquare_18   Nc                 b   U R                  U5      (       a  US:w  a  [        R                  " U5      4$ U R                  U5      nUS:g  n[        R                  " [        R                  " U5      X#S9nUS:X  a5  [        U[        R                  5      (       d  [        R                  " U5      nU4$ )Nr   r   )is_axes_emptyr   r   handle_axesr   r   r   r   )r   r   r   r
   noop_with_empty_axesr   s         r   r   ReduceSumSquare_18._run   s    d##(<(AIIdO%%%q=ffRYYt_4Cq=C!<!<((3-Cvr   r   )N   r   r   r   r   r   r"   r"      s    
r   r"   )numpyr   onnx.reference.ops._opr   r   r"   r   r   r   <module>r,      s'     3( ) r   