U
    q±Ëh‹  ã                   @  s4   d dl mZ d dlZd dlmZ G dd„ deƒZdS )é    )ÚannotationsN)ÚOpRunUnaryNumc                   @  s   e Zd Zddd„ZdS )ÚEluNc                 C  s4   |p| j }t |dk||t |¡d  ¡ |j¡fS )Nr   é   )ÚalphaÚnpÚwhereÚexpZastypeZdtype)ÚselfÚxr   © r   ú=/tmp/pip-unpacked-wheel-xnis5xre/onnx/reference/ops/op_elu.pyÚ_run   s    
zElu._run)N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s   r   )Ú
__future__r   Znumpyr   Zonnx.reference.ops._opr   r   r   r   r   r   Ú<module>   s   