Browse Source

!11498 RangeOp fix docstring example

From: @peilin-wang
Reviewed-by: @tom__chen,@mikef
Signed-off-by: @mikef
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
304499dfaa
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      mindspore/ops/operations/array_ops.py

+ 3
- 3
mindspore/ops/operations/array_ops.py View File

@@ -4855,9 +4855,9 @@ class Range(PrimitiveWithCheck):
A 1-D Tensor, with the same type as the inputs.

Examples:
>>> start = Tensor(0)
>>> limit = Tensor(10)
>>> delta = Tensor(4)
>>> start = Tensor(0, mstype.int32)
>>> limit = Tensor(10, mstype.int32)
>>> delta = Tensor(4, mstype.int32)
>>> output = ops.Range()(start, limit, delta)
>>> print(output)
[0, 4, 8]


Loading…
Cancel
Save