mindspore/docs/api/api_python/ops/mindspore.ops.LogNormalReve...

24 lines
892 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.LogNormalReverse
==============================
.. py:class:: mindspore.ops.LogNormalReverse(mean=1.0, std=2.0)
用给定均值和标准差初始化对数正态分布并以此填充输入Tensor的元素。
.. math::
\text{f}(x;1.0,2.0)=\frac{1}{x\delta \sqrt[]{2\pi} }e^{-\frac{(\ln x-\mu )^2}{2\delta ^2} }
参数:
- **mean** (float可选) - 正态分布的均值float类型。默认值1.0。
- **std** (float可选) - 正态分布的标准差float类型。默认值2.0。
输入:
- **input** (Tensor) - 要用对数正态分布生成的Tensor。必须是以下类型之一float16、float32。
输出:
Tensor`input` 的shape及数据类型相同。
异常:
- **TypeError** - 如果 `input` 不是Tensor。
- **ValueError** - 如果 `input` 是NULL。