§
    3�ÅjÃ  ã                  óJ   — d dl mZ d dlZd dlmZ d
d„Z G d„ d	e¦  «        ZdS )é    )ÚannotationsN)ÚOpRunUnaryNumÚxú
np.ndarrayÚreturnc                ó    — | dk    }t          j        | ¦  «        }t          j        |ddt          j        |  ¦  «        z   z  |d|z   z  ¦  «        S )zNNumerically stable sigmoid implementation that supports scalars and nd-arrays.r   g      ð?)ÚnpÚexpÚwhere)r   Úpos_maskÚexp_xs      úNC:\Projects\Historical\venv\Lib\site-packages\onnx/reference/ops/op_sigmoid.pyÚsigmoidr      sR   € à�1Šu€HÝŒF�1‰IŒI€EÝŒ8ØØˆs•R”V˜Q˜B‘Z”ZÑÑ Ø��u‘Ññô ð ó    c                  ó   — e Zd Zd„ Zd„ ZdS )ÚSigmoidc                ó2   — t          j        | ||¦  «         d S ©N)r   Ú__init__)ÚselfÚ	onnx_nodeÚ
run_paramss      r   r   zSigmoid.__init__   s   € ÝÔ˜t Y°
Ñ;Ô;Ð;Ð;Ð;r   c                óR   — t          |¦  «                             |j        ¦  «        fS r   )r   ÚastypeÚdtype)r   ÚXs     r   Ú_runzSigmoid._run   s!   € Ý˜‘
”
×!Ò! !¤'Ñ*Ô*Ð,Ð,r   N)Ú__name__Ú
__module__Ú__qualname__r   r   © r   r   r   r      s2   € € € € € ð<ð <ð <ð-ð -ð -ð -ð -r   r   )r   r   r   r   )Ú
__future__r   Únumpyr	   Úonnx.reference.ops._opr   r   r   r!   r   r   ú<module>r%      s   ðð #Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð à 0Ð 0Ð 0Ð 0Ð 0Ð 0ðð ð ð ð-ð -ð -ð -ð -ˆmñ -ô -ð -ð -ð -r   