torch.Tensor.bernoulli
- Tensor.bernoulli(*, generator=None) → Tensor
Returns a result tensor where each is independently sampled from . must have floating point , and the result will have the same .
Returns a result tensor where each is independently sampled from . must have floating point , and the result will have the same .
selfdtypedtype