Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions docs/api/paddle/distribution/Distribution_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ sample(shape=[])

**参数**

- **shape** (Sequence[int],可选) - 采样的样本维度。
- **shape** (Sequence[int],可选) - 采样的样本维度。别名 ``sample_shape``。

rsample(shape=[])
'''''''''
Expand All @@ -83,7 +83,16 @@ rsample(shape=[])

**参数**

- **shape** (Sequence[int],可选) - 重参数化采样的样本维度。
- **shape** (Sequence[int],可选) - 重参数化采样的样本维度。别名 ``sample_shape``。

sample_n(n)
''''''''''

从分布中生成 ``n`` 个样本。

**参数**

- **n** (int) - 采样数量。

sample_n(n)
''''''''''
Expand Down
4 changes: 2 additions & 2 deletions docs/api/paddle/distribution/Normal_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ sample(shape=[], seed=0)

**参数**

- **shape** (Sequence[int], 可选) - 指定生成样本的维度。
- **shape** (Sequence[int], 可选) - 指定生成样本的维度。别名 ``sample_shape``。
- **seed** (int) - 长整型数。

**返回**
Expand All @@ -83,7 +83,7 @@ rsample(shape=[])

**参数**

- **shape** (Sequence[int], 可选) - 指定生成样本的维度。
- **shape** (Sequence[int], 可选) - 指定生成样本的维度。别名 ``sample_shape``。

**返回**

Expand Down