
    Si^                        S SK Jr  S SKrS SKJr   S       SS jjr " S S\5      r " S S\5      r " S	 S
\5      r	g)    )annotationsN)OpRunc                    [         R                  " U5      nUS:X  a>  [         R                  " US:H  5      n[         R                  " U R                  5      U   X4'   [         R
                  " X5      $ Nr   )npcopywherearrayshapereshape)datar   	allowzero	new_shapezeros_indexs        \/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/onnx/reference/ops/op_reshape.py reshape_reference_implementationr      sS    
 IA~hhuz*!#$**!5k!B	::d&&    c                      \ rS rSrS rSrg)CommonReshape   c                    [        XS5      4$ r   )r   )selfr   r   s      r   _runCommonReshape._run   s    0a@BBr    N__name__
__module____qualname____firstlineno__r   __static_attributes__r   r   r   r   r      s    Cr   r   c                      \ rS rSrSrg)	Reshape_5   r   N)r   r   r   r    r!   r   r   r   r#   r#      s    r   r#   c                      \ rS rSrSS jrSrg)
Reshape_14    Nc                N    Uc  [        U SS5      S:H  nOUS:H  n[        XU5      4$ )Nr   r      )getattrr   )r   r   r   r   s       r   r   Reshape_14._run!   s4    k15:I!QI0iHJJr   r   )Nr   r   r   r   r&   r&       s    Kr   r&   )r   )r   
np.ndarrayr   r,   r   intreturnr,   )

__future__r   numpyr   onnx.reference.op_runr   r   r   r#   r&   r   r   r   <module>r2      sb    #  ' ;<	'
	''	'47	'	'CE C
	 	K Kr   