torch.Tensor.bernoulli\_ ======================== .. currentmodule:: torch .. automethod:: Tensor.bernoulli_