o
    to™i°  ã                   @  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 )ÚHardSigmoidNc                 C  s>   |p| j }|p	| j}t dt d|| | ¡¡ |j¡}|fS )Nr   é   )ÚalphaÚbetaÚnpÚmaximumÚminimumÚastypeÚdtype)ÚselfÚxr   r   Úy© r   úV/home/ubuntu/.local/lib/python3.10/site-packages/onnx/reference/ops/op_hard_sigmoid.pyÚ_run   s   

$zHardSigmoid._run)NN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s    r   )Ú
__future__r   Únumpyr   Úonnx.reference.ops._opr   r   r   r   r   r   Ú<module>   s   