mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fixed doc typo.
This commit is contained in:
@ -98,7 +98,7 @@ the given ''mean'' and standard deviation ''stdv''.
|
||||
Returns a random integer number according to a geometric distribution
|
||||
''p(i) = (1-p) * p^(i-1)''. ''p'' must satisfy ''0 < p < 1''.
|
||||
|
||||
==== [number] bernouilli([p]) ====
|
||||
==== [number] bernoulli([p]) ====
|
||||
{{anchor:torch.bernoulli}}
|
||||
|
||||
Returns ''1'' with probability ''p'' and ''0'' with probability ''1-p''. ''p'' must satisfy ''0 < p < 1''.
|
||||
|
Reference in New Issue
Block a user