未验证 提交 61311232 编写于 作者: W wangchaochaohu 提交者: GitHub

refine the doc of linspace (#2546)

上级 0a3fbbe2
...@@ -15,7 +15,7 @@ linspace ...@@ -15,7 +15,7 @@ linspace
- **dtype** (np.dtype|str, 可选) – 输出Tensor的数据类型。数据类型可以是float32,float64,int32,int64。如果dtype的数据类型为None,输出Tensor数据类型为float32。 - **dtype** (np.dtype|str, 可选) – 输出Tensor的数据类型。数据类型可以是float32,float64,int32,int64。如果dtype的数据类型为None,输出Tensor数据类型为float32。
- **name** (str, 可选)- 具体用法请参见 :ref:`api_guide_Name` ,一般无需设置,默认值为None。 - **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。
**代码示例**: **代码示例**:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册