Skip to content

Commit 76c4f5c

Browse files
authored
[API Compatibility] Supplement Normal_cn.rst (#7917)
1 parent dde2b57 commit 76c4f5c

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

docs/api/paddle/distribution/Distribution_cn.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ sample(shape=[])
7474

7575
**参数**
7676

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

7979
rsample(shape=[])
8080
'''''''''
@@ -83,7 +83,16 @@ rsample(shape=[])
8383

8484
**参数**
8585

86-
- **shape** (Sequence[int],可选) - 重参数化采样的样本维度。
86+
- **shape** (Sequence[int],可选) - 重参数化采样的样本维度。别名 ``sample_shape``。
87+
88+
sample_n(n)
89+
''''''''''
90+
91+
从分布中生成 ``n`` 个样本。
92+
93+
**参数**
94+
95+
- **n** (int) - 采样数量。
8796

8897
sample_n(n)
8998
''''''''''

docs/api/paddle/distribution/Normal_cn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ sample(shape=[], seed=0)
6969

7070
**参数**
7171

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

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

8484
**参数**
8585

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

8888
**返回**
8989

0 commit comments

Comments
 (0)