Skip to content

Commit

Permalink
refine the doc of linspace (PaddlePaddle#2546)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangchaochaohu authored Sep 5, 2020
1 parent 0a3fbbe commit 6131123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/fluid/api_cn/tensor_cn/linspace_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ linspace
- **dtype** (np.dtype|str, 可选) – 输出Tensor的数据类型。数据类型可以是float32,float64,int32,int64。如果dtype的数据类型为None,输出Tensor数据类型为float32。
- **name** (str, 可选)- 具体用法请参见 :ref:`api_guide_Name` ,一般无需设置,默认值为None。

返回:表示等间隔划分结果的1-D Tensor,该Tensor的shape大小为 :math:`[num]` ,在mum为1的情况下,仅返回包含start元素值的Tensor。
返回:表示等间隔划分结果的1-D Tensor,该Tensor的shape大小为 :math:`[num]` ,在num为1的情况下,仅返回包含start元素值的Tensor。


**代码示例**:
Expand Down

0 comments on commit 6131123

Please sign in to comment.