Shortcuts

torch.Tensor.geometric_

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

Fills self tensor with elements drawn from the geometric distribution:

f(X=k)=pk1(1p)f(X=k) = p^{k - 1} (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