diff --git a/docs/api/paddle/distribution/Distribution_cn.rst b/docs/api/paddle/distribution/Distribution_cn.rst index 02c7e2ff093..94258f081f8 100644 --- a/docs/api/paddle/distribution/Distribution_cn.rst +++ b/docs/api/paddle/distribution/Distribution_cn.rst @@ -74,7 +74,7 @@ sample(shape=[]) **参数** - - **shape** (Sequence[int],可选) - 采样的样本维度。 + - **shape** (Sequence[int],可选) - 采样的样本维度。别名 ``sample_shape``。 rsample(shape=[]) ''''''''' @@ -83,7 +83,16 @@ rsample(shape=[]) **参数** - - **shape** (Sequence[int],可选) - 重参数化采样的样本维度。 + - **shape** (Sequence[int],可选) - 重参数化采样的样本维度。别名 ``sample_shape``。 + +sample_n(n) +'''''''''' + +从分布中生成 ``n`` 个样本。 + +**参数** + + - **n** (int) - 采样数量。 sample_n(n) '''''''''' diff --git a/docs/api/paddle/distribution/Normal_cn.rst b/docs/api/paddle/distribution/Normal_cn.rst index f2140e127a8..f59019b1579 100644 --- a/docs/api/paddle/distribution/Normal_cn.rst +++ b/docs/api/paddle/distribution/Normal_cn.rst @@ -69,7 +69,7 @@ sample(shape=[], seed=0) **参数** - - **shape** (Sequence[int], 可选) - 指定生成样本的维度。 + - **shape** (Sequence[int], 可选) - 指定生成样本的维度。别名 ``sample_shape``。 - **seed** (int) - 长整型数。 **返回** @@ -83,7 +83,7 @@ rsample(shape=[]) **参数** - - **shape** (Sequence[int], 可选) - 指定生成样本的维度。 + - **shape** (Sequence[int], 可选) - 指定生成样本的维度。别名 ``sample_shape``。 **返回**