Range

public final class Range

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]
 

Public Methods

Output<T>
asOutput()
Returns the symbolic handle of a tensor.
static <T extends Number> 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.
Output<T>
output()
1-D.

Inherited Methods

org.tensorflow.op.PrimitiveOp
final boolean
equals(Object obj)
final int
Operation
op()
Returns the underlying Operation
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
org.tensorflow.Operand
abstract Output<T>
asOutput()
Returns the symbolic handle of a tensor.

Public Methods

public Output<T> asOutput ()

Returns the symbolic handle of a 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

public Output<T> output ()

1-D.