Skip to content

Commit

Permalink
reshape 0d tensor doc update (#5548)
Browse files Browse the repository at this point in the history
* reshape 0d tensor doc update

* update 1-D tensor
  • Loading branch information
zhaoyinglia authored Jan 5, 2023
1 parent 744642a commit 3c2b091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/paddle/reshape_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ reshape
::::::::::::

- **x** (Tensor) - N-D ``Tensor``,数据类型为 ``float32``、``float64``、``int32``、``int64`` 或者 ``bool``。
- **shape** (list|tuple|Tensor) - 数据类型是 ``int32``。定义目标形状。目标形状最多只能有一个维度为-1。如果 ``shape`` 的类型是 list 或 tuple,它的元素可以是整数或者形状为[1]的 ``Tensor``。如果 ``shape`` 的类型是 ``Tensor``,则是 1-D 的 ``Tensor``。
- **shape** (list|tuple|Tensor) - 数据类型是 ``int32``。定义目标形状。目标形状最多只能有一个维度为-1。如果 ``shape`` 的类型是 list 或 tuple,它的元素可以是整数或者形状为[]的 ``Tensor``。如果 ``shape`` 的类型是 ``Tensor``,则是 1-D 的 ``Tensor``。
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

返回
Expand Down

0 comments on commit 3c2b091

Please sign in to comment.