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
|
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 TType> Empty<T> |
create(Scope scope, Operand<TInt32> 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
Constants
public static final String OP_NAME
The name of this op, as known by TensorFlow core engine
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 Empty<T> create (Scope scope, Operand<TInt32> 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. |
---|