From 263ff731ebe698d9d6076dbbdf06aabe068282b0 Mon Sep 17 00:00:00 2001 From: zhoukunsheng Date: Wed, 27 Mar 2019 20:20:06 +0800 Subject: [PATCH] add more comment --- python/paddle/fluid/layers/tensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/tensor.py b/python/paddle/fluid/layers/tensor.py index 3eb2718827e..0a0cdd7a03d 100644 --- a/python/paddle/fluid/layers/tensor.py +++ b/python/paddle/fluid/layers/tensor.py @@ -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()) -- GitLab