o
    to™iò  ã                   @  s@   d dl mZ d dlZd dlmZ ddd
d„ZG dd„ deƒZdS )é    )ÚannotationsN)ÚOpRunç      ð?Úxú
np.ndarrayÚalphaÚfloatÚreturnc                 C  s2   t  d| ¡}t  d|t  | | ¡d  ¡}|| S )Nr   é   )ÚnpÚmaximumÚminimumÚexp)r   r   Úpositive_inputÚnegative_input© r   úN/home/ubuntu/.local/lib/python3.10/site-packages/onnx/reference/ops/op_celu.pyÚ_vcelu1   s   r   c                   @  s   e Zd Zddd„ZdS )ÚCeluNc                 C  s   t ||ƒ |j¡fS ©N)r   ÚastypeÚdtype)Úselfr   r   r   r   r   Ú_run   s   z	Celu._runr   )Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s    r   )r   )r   r   r   r   r	   r   )Ú
__future__r   Únumpyr   Úonnx.reference.op_runr   r   r   r   r   r   r   Ú<module>   s
   