T
- data type for output()
output@Operator public final class LinSpace<T extends Number> extends PrimitiveOp implements Operand<T>
A sequence of `num` evenly-spaced values are generated beginning at `start`. If `num > 1`, the values in the sequence increase by `stop - start / num - 1`, so that the last one is exactly `stop`.
For example:
tf.linspace(10.0, 12.0, 3, name="linspace") => [ 10.0 11.0 12.0]
operation
Modifier and Type | Method and Description |
---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T extends Number,U extends Number> |
create(Scope scope,
Operand<T> start,
Operand<T> stop,
Operand<U> num)
Factory method to create a class wrapping a new LinSpace operation.
|
Output<T> |
output()
1-D.
|
equals, hashCode, op, toString
public static <T extends Number,U extends Number> LinSpace<T> create(Scope scope, Operand<T> start, Operand<T> stop, Operand<U> num)
scope
- current scopestart
- 0-D tensor. First entry in the range.stop
- 0-D tensor. Last entry in the range.num
- 0-D tensor. Number of values to generate.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.