initial commit

pull/11498/head
Peilin Wang 4 years ago
parent 0641940b87
commit 416e2cf249

@ -4760,9 +4760,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