:github_url: https://github.com/pytorch/pytorch .. _exhale_function_namespaceat_1a3a32d0e1831d6bdf1fb7124fbf02dda7: Function at::bernoulli(const at::Tensor&, double, ::std::optional) ================================================================================= - Defined in :ref:`file_build_aten_src_ATen_Functions.h` Function Documentation ---------------------- .. doxygenfunction:: at::bernoulli(const at::Tensor&, double, ::std::optional)