Empty

public final class Empty

Creates a tensor with the given shape.

This operation creates a tensor of `shape` and `dtype`.

Nested Classes

class Empty.Options Optional attributes for Empty  

Public Methods

Output<T>
asOutput()
Returns the symbolic handle of a tensor.
static <T> Empty<T>
create(Scope scope, Operand<Integer> shape, Class<T> dtype, Options... options)
Factory method to create a class wrapping a new Empty operation.
static Empty.Options
init(Boolean init)
Output<T>
output()
A `Tensor` of type `T`.

Inherited Methods

org.tensorflow.op.PrimitiveOp
final boolean
equals(Object obj)
final int
Operation
op()
Returns the underlying Operation
final String
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()
org.tensorflow.Operand
abstract Output<T>
asOutput()
Returns the symbolic handle of a tensor.

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 Empty<T> create (Scope scope, Operand<Integer> shape, Class<T> dtype, Options... options)

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

Parameters
scope current scope
shape 1-D. Represents the shape of the output tensor.
options carries optional attributes values
Returns
  • a new instance of Empty

public static Empty.Options init (Boolean init)

Parameters
init If True, initialize the returned tensor with the default value of dtype. Otherwise, the implementation is free not to initializethe tensor's content.

public Output<T> output ()

A `Tensor` of type `T`.