A placeholder op for a value that will be fed into the computation.
N.B. This operation will fail with an error if it is executed. It is intended as a way to represent a value that will always be fed, and to provide attrs that enable the fed value to be checked at runtime.
Nested Classes
class | Placeholder.Options | Optional attributes for Placeholder
|
Public Methods
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> Placeholder<T> |
create(Scope scope, Class<T> dtype, Options... options)
Factory method to create a class wrapping a new Placeholder operation.
|
Output<T> |
output()
A placeholder tensor that must be replaced using the feed mechanism.
|
static Placeholder.Options |
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 Placeholder<T> create (Scope scope, Class<T> dtype, Options... options)
Factory method to create a class wrapping a new Placeholder operation.
Parameters
scope | current scope |
---|---|
dtype | The type of elements in the tensor. |
options | carries optional attributes values |
Returns
- a new instance of Placeholder
public static Placeholder.Options shape (Shape shape)
Parameters
shape | (Optional) The shape of the tensor. If the shape has 0 dimensions, the shape is unconstrained. |
---|