T - data type for output() output@Operator public final class PlaceholderV2<T> extends PrimitiveOp implements Operand<T>
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.
operation| Modifier and Type | Method and Description |
|---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> PlaceholderV2<T> |
create(Scope scope,
Class<T> dtype,
Shape shape)
Factory method to create a class to wrap a new PlaceholderV2 operation to the graph.
|
Output<T> |
output()
A placeholder tensor that must be replaced using the feed mechanism.
|
equals, hashCode, toStringpublic static <T> PlaceholderV2<T> create(Scope scope, Class<T> dtype, Shape shape)
scope - current graph scopedtype - The type of elements in the tensor.shape - The shape of the tensor. The shape can be any partially-specified
shape. To be unconstrained, pass in a shape with unknown rank.public Output<T> output()
public Output<T> asOutput()
OperandInputs 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.
asOutput in interface Operand<T>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.