Skip to content

Commit

Permalink
fix:en doc
Browse files Browse the repository at this point in the history
  • Loading branch information
PureNatural committed Oct 14, 2022
1 parent 3598ed5 commit e7108f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/paddle/distribution/gumbel.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ class Gumbel(TransformedDistribution):
from paddle.distribution.gumbel import Gumbel
# Gumbel distributed with loc=0, scale=1
dist = Gumbel(paddle.full([0.0]), paddle.full([1.0]))
dist = Gumbel(paddle.full([1], 0.0)), paddle.full([1.0]))
dist.sample()
# Tensor(shape=[1], dtype=float32, place=Place(gpu:0), stop_gradient=True, [4.14814520])
value = paddle.full([0.5])
value = paddle.full([1], 0.5)
dist.prob(value)
# Tensor(shape=[1], dtype=float32, place=Place(gpu:0), stop_gradient=True, [0.33070430])
dist.log_prob(value)
Expand Down

0 comments on commit e7108f0

Please sign in to comment.