Tune in to the first Women in ML Symposium this Tuesday, October 19 at 9am PST Register now

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]
 

Public Methods

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

Inherited Methods

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 LinSpace<T> create (Scope scope, Operand<T> start, Operand<T> stop, Operand<U> 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.