Creates a sequence of numbers.
This operation creates a sequence of numbers that begins at `start` and extends by increments of `delta` up to but not including `limit`.
For example:
# 'start' is 3
# 'limit' is 18
# 'delta' is 3
tf.range(start, limit, delta) ==> [3, 6, 9, 12, 15]
Constants
String | OP_NAME | The name of this op, as known by TensorFlow core engine |
Public Methods
Output<T> |
asOutput()
Returns the symbolic handle of the tensor.
|
static <T extends TNumber> Range<T> | |
Output<T> |
output()
1-D.
|
Inherited Methods
Constants
public static final String OP_NAME
The name of this op, as known by TensorFlow core engine
Public Methods
public Output<T> asOutput ()
Returns the symbolic handle of the tensor.
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
public static Range<T> create (Scope scope, Operand<T> start, Operand<T> limit, Operand<T> delta)
Factory method to create a class wrapping a new Range operation.
Parameters
scope | current scope |
---|---|
start | 0-D (scalar). First entry in the sequence. |
limit | 0-D (scalar). Upper limit of sequence, exclusive. |
delta | 0-D (scalar). Optional. Default is 1. Number that increments `start`. |
Returns
- a new instance of Range