!37842 Update Poisson Chinese Doc

Merge pull request !37842 from zichun_ye/code_docs_prob
This commit is contained in:
i-robot 2022-07-12 07:51:08 +00:00 committed by Gitee
commit 0014ad0c59
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
mindspore.ops.Poisson
===================
.. py:class:: mindspore.ops.Poisson(seed=0, seed2=0)
生成 Poisson 分布的随机数。
.. math::
\text{P}(i|μ) = \frac{\exp(-μ)μ^{i}}{i!},
**参数:**
- **seed** (int) - 算子层的随机种子用于生成随机数。必须是非负的。默认值0。
- **seed2** (int) - 全局的随机种子和算子层的随机种子共同决定最终生成的随机数。必须是非负的。默认值0。
**输入:**
- **shape** (tuple) - 待生成的随机 Tensor 的 shape。只支持常量值。
- **mean** (Tensor) - Poisson 分布的期望,也就是上面公式中的 μ。其值必须大于0。数据类型为 float32。
**输出:**
Tensor。shape是输入 `shape``mean` 广播后的 shape。数据类型为 int32。
**异常:**
- **TypeError** - `seed``seed2` 的数据类型不是 int。
- **TypeError** - `mean` 不是数据类型为 float32 的 Tensor。
- **ValueError** - `shape` 不是常量值。