Shortcuts

torch.Tensor.geometric_

Tensor.geometric_(p, *, generator=None) Tensor

Fills self tensor with elements drawn from the geometric distribution:

f(X=k)=(1p)k1pf(X=k) = (1 - p)^{k - 1} p

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources