提交 f6948c31 编写于 作者: S ShenLiang 提交者: Yi Liu

fix doc of scatter, test=develop (#1695)

上级 539477cf
......@@ -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,表示会自动命名。
......
......@@ -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,表示会自动命名。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册