
    
Ng.                     :    d dl mZ d dlmZ  G d de          ZdS )    )np_dtype_to_tensor_dtype)_CommonRandomc                       e Zd ZddZdS )	BernoulliNc                    |t          |j                  }|                     ||d          }|                     |          }|                    d|                              |          }|                    |          fS )NT)dtypedtype_first   )p)r   r   _dtype
_get_statebinomialastype)selfxr   seedstateress         [/var/www/html/ai-engine/env/lib/python3.11/site-packages/onnx/reference/ops/op_bernoulli.py_runzBernoulli._run   sv    =,QW55EAU==%%nnQ!n$$++E22

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