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
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. |
|---|