o
    toi*                     @  sD   d dl mZ d dlZd dlmZ G dd deZG dd deZdS )    )annotationsN)OpRunReduceNumpyc                   @  s   e Zd ZdddZdS )ReduceSumSquare_1Nc                 C  sN   |d urt |nd }tjt|||d}|dkr$t|tjs$t|}|fS )Naxiskeepdimsr   )tuplenpsumsquare
isinstancendarrayarray)selfdataaxesr   res r   [/home/ubuntu/.local/lib/python3.10/site-packages/onnx/reference/ops/op_reduce_sum_square.py_run   s
   
zReduceSumSquare_1._run)NN__name__
__module____qualname__r   r   r   r   r   r          r   c                   @  s   e Zd ZdddZdS )ReduceSumSquare_18N   r   c                 C  sN   |  ||}|dk}tjt|||d}|dkr$t|tjs$t|}|fS )Nr   r   )handle_axesr	   r
   r   r   r   r   )r   r   r   r   noop_with_empty_axesr   r   r   r   r      s   
zReduceSumSquare_18._run)Nr   r   r   r   r   r   r   r      r   r   )
__future__r   numpyr	   onnx.reference.ops._opr   r   r   r   r   r   r   <module>   s
   
