torch.Tensor.geometric_#
- Tensor.geometric_(p, *, generator=None) Tensor#
 Fills
selftensor with elements drawn from the geometric distribution:Note
torch.Tensor.geometric_()k-th trial is the first success hence draws samples in , whereastorch.distributions.geometric.Geometric()-th trial is the first success hence draws samples in .