Clarify meaning of rate parameter in Gamma distribution (#134847)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/134847
Approved by: https://github.com/fritzo
This commit is contained in:
Peter Steinbach 2024-11-09 00:22:13 +00:00 committed by PyTorch MergeBot
parent 7eb66173e2
commit 090b778b8a

View File

@ -29,8 +29,8 @@ class Gamma(ExponentialFamily):
Args:
concentration (float or Tensor): shape parameter of the distribution
(often referred to as alpha)
rate (float or Tensor): rate = 1 / scale of the distribution
(often referred to as beta)
rate (float or Tensor): rate parameter of the distribution
(often referred to as beta), rate = 1 / scale
"""
arg_constraints = {
"concentration": constraints.positive,