From f6948c31994e7b9ad3303b5075b8510f5d00b68b Mon Sep 17 00:00:00 2001 From: ShenLiang <1422485404@qq.com> Date: Tue, 31 Dec 2019 21:40:02 +0800 Subject: [PATCH] fix doc of scatter, test=develop (#1695) --- doc/fluid/api_cn/layers_cn/scatter_nd_add_cn.rst | 2 +- doc/fluid/api_cn/layers_cn/scatter_nd_cn.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/fluid/api_cn/layers_cn/scatter_nd_add_cn.rst b/doc/fluid/api_cn/layers_cn/scatter_nd_add_cn.rst index 96c272208..3a703fb7a 100644 --- a/doc/fluid/api_cn/layers_cn/scatter_nd_add_cn.rst +++ b/doc/fluid/api_cn/layers_cn/scatter_nd_add_cn.rst @@ -40,7 +40,7 @@ scatter_nd_add 参数: - - **ref** (Variable) - 输入张量,数据类型可以是int32,int64,float32,float64。 + - **ref** (Variable) - 输入张量,数据类型可以是float32,float64。 - **index** (Variable) - 输入的索引张量,数据类型为非负int32或非负int64。它的维度 :code:`index.rank` 必须大于1,并且 :code:`index.shape[-1] <= ref.rank` - **updates** (Variable) - 输入的更新张量,它必须和 :code:`ref` 有相同的数据类型。形状必须是 :code:`index.shape[:-1] + ref.shape[index.shape[-1]:]` 。 - **name** (string) - 该层的名字,默认值为None,表示会自动命名。 diff --git a/doc/fluid/api_cn/layers_cn/scatter_nd_cn.rst b/doc/fluid/api_cn/layers_cn/scatter_nd_cn.rst index 525cac14a..b0e660b03 100644 --- a/doc/fluid/api_cn/layers_cn/scatter_nd_cn.rst +++ b/doc/fluid/api_cn/layers_cn/scatter_nd_cn.rst @@ -9,7 +9,7 @@ scatter_nd 参数: - **index** (Variable) - 输入的索引张量,数据类型为非负int32或非负int64。它的维度 :code:`index.rank` 必须大于1,并且 :code:`index.shape[-1] <= len(shape)` - - **updates** (Variable) - 输入的更新张量。形状必须是 :code:`index.shape[:-1] + shape[index.shape[-1]:]` 。数据类型可以是int32,int64,float32,float64。 + - **updates** (Variable) - 输入的更新张量。形状必须是 :code:`index.shape[:-1] + shape[index.shape[-1]:]` 。数据类型可以是float32,float64。 - **shape** (tuple|list) - 要求输出张量的形状。类型是tuple或者list。 - **name** (string) - 该层的名字,默认值为None,表示会自动命名。 -- GitLab