LinSpace

public final class LinSpace

Generates values in an interval.

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]
 

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> LinSpace<T>
create(Scope scope, Operand<T> start, Operand<T> stop, Operand<? extends TNumber> num)
Factory method to create a class wrapping a new LinSpace operation.
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

Constant Value: "LinSpace"

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 LinSpace<T> create (Scope scope, Operand<T> start, Operand<T> stop, Operand<? extends TNumber> num)

Factory method to create a class wrapping a new LinSpace operation.

Parameters
scope current scope
start 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.
Returns
  • a new instance of LinSpace

public Output<T> output ()

1-D. The generated values.