torch.Tensor.log_normal_¶ Tensor.log_normal_(mean=1, std=2, *, generator=None)¶ 使用對數正態分佈中的樣本填充 self 張量,該分佈由給定的均值 μ\muμ 和標準差 σ\sigmaσ 引數化。請注意,mean 和 std 是底層正態分佈的均值和標準差,而不是返回的分佈的均值和標準差 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}}f(x)=xσ2π1 e−2σ2(lnx−μ)2