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
Inherited Methods
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()
|
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