torch.Tensor.log_normal_ — PyTorch 2.7 documentation (original) (raw)
Tensor.log_normal_(mean=1, std=2, *, generator=None)¶
Fills self
tensor with numbers samples from the log-normal distribution parameterized by the given mean μ\mu and standard deviationσ\sigma. Note that mean and std are the mean and standard deviation of the underlying normal distribution, and not of the returned distribution:
f(x)=1xσ2π e−(lnx−μ)22σ2f(x) = \dfrac{1}{x \sigma \sqrt{2\pi}}\ e^{-\frac{(\ln x - \mu)^2}{2\sigma^2}}
To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.