Add range op
Created by: lijiancheng0614
Return evenly spaced values within a given interval. Values are generated within the half-open interval [start, stop) (in other words, the interval including start but excluding stop).
Attributes
- start(int|float|Variable) Start of interval. The interval includes this value.
- end(int|float|Variable) End of interval. The interval does not include this value, except in some cases where step is not an integer and floating point round-off affects the length of out.
- step(int|float|Variable) Spacing between values. For any output out, this is the distance between two adjacent values, out[i+1] - out[i]. The default step size is 1.
- dtype(string) 'float32'|'int32'|..., the data type of the output tensor.
Outputs
- Out Evenly spaced values within a given interval.
Reference
https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/range_op.cc