
    bIg                    f    d dl mZ d dlZd dlmZ  G d de      Z G d de      Z G d d	e      Zy)
    )annotationsN)OpRunReduceNumpyc                      e Zd ZddZy)ReduceMin_1Nc                   |t        |      nd }|j                  dk(  r{t        j                  |j                  t        j
                        r)t        j                  |j                        j                  nt        j                  }| j                  ||||      S t        j                  j                  |||dk(        }|dk(  r/t        |t        j                        st        j                  |      }|fS )Nr      axiskeepdims)tuplesizenp
issubdtypedtypeintegeriinfomaxinfreduce_constantminimumreduce
isinstancendarrayarray)selfdataaxesr   maxvalueress         ]/var/www/html/answerous/venv/lib/python3.12/site-packages/onnx/reference/ops/op_reduce_min.py_runzReduceMin_1._run   s    ".uT{D99> ==RZZ8 $((VV 
 ''hhGGjj4(a-Hq=C!<((3-Cv    )NN__name__
__module____qualname__r!    r"   r    r   r      s    r"   r   c                      e Zd Zy)ReduceMin_11N)r$   r%   r&   r'   r"   r    r)   r)      s    r"   r)   c                      e Zd ZdddZy)ReduceMin_18Nc                &   | j                  |      r|dk7  r|fS | j                  |      }|dk7  }|j                  dk(  r{t        j                  |j
                  t        j                        r)t        j                  |j
                        j                  nt        j                  }| j                  ||||      S t        j                  j                  |||      }|dk(  r/t        |t        j                        st        j                  |      }|fS )Nr   r	   )is_axes_emptyhandle_axesr   r   r   r   r   r   r   r   r   r   r   r   r   r   )r   r   r   r   noop_with_empty_axesr   r   s          r    r!   zReduceMin_18._run"   s    d#(<(A7N%q=99> ==RZZ8 $((VV 
 ''hhGGjj4(Cq=C!<((3-Cvr"   )Nr   r   )r   intr/   r0   r#   r'   r"   r    r+   r+   !   s    r"   r+   )	
__future__r   numpyr   onnx.reference.ops._opr   r   r)   r+   r'   r"   r    <module>r4      s6    #  3" $	; 	# r"   