T
- data type for output()
output@Operator public final class Range<T extends Number> extends PrimitiveOp implements Operand<T>
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]
operation
Modifier and Type | Method and Description |
---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T extends Number> |
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.
|
equals, hashCode, op, toString
public static <T extends Number> Range<T> create(Scope scope, Operand<T> start, Operand<T> limit, Operand<T> delta)
scope
- current scopestart
- 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`.public Output<T> asOutput()
Operand
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.
asOutput
in interface Operand<T extends Number>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.