torch.Tensor.geometric_¶
- Tensor.geometric_(p, *, generator=None) Tensor ¶
Fills
self
tensor 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 .