提交 263ff731 编写于 作者: Z zhoukunsheng

add more comment

上级 43060084
......@@ -832,7 +832,8 @@ def linspace(start, stop, num, dtype):
Examples:
.. code-block:: python
data = fluid.layers.linspace(0, 10, 5, 'float32')
data = fluid.layers.linspace(0, 10, 5, 'float32') # [0.0, 2.5, 5.0, 7.5, 10.0]
data = fluid.layers.linspace(0, 10, 1, 'float32') # [0.0]
"""
helper = LayerHelper("linspace", **locals())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册