
    bIgP                    >    d dl mZ d dlmZ d dlmZ  G d de      Zy)    )annotations)np_dtype_to_tensor_dtype)_CommonRandomc                      e Zd ZddZy)	BernoulliNc                    |t        |j                        }| j                  ||d      }| j                  |      }|j	                  d|      j                  |      }|j                  |      fS )NT)dtypedtype_first   )p)r   r	   _dtype
_get_statebinomialastype)selfxr	   seedstateress         \/var/www/html/answerous/venv/lib/python3.12/site-packages/onnx/reference/ops/op_bernoulli.py_runzBernoulli._run   sf    =,QWW5EAU=%nnQ!n$++E2

5!##    )NN)__name__
__module____qualname__r    r   r   r   r   
   s    $r   r   N)
__future__r   onnx.helperr   $onnx.reference.ops._op_common_randomr   r   r   r   r   <module>r       s    # 0 >$ $r   