T - data type for value() output@Operator public final class ReadVariableOp<T> extends PrimitiveOp implements Operand<T>
The tensor returned by this operation is immutable.
The value returned by this operation is guaranteed to be influenced by all the writes on which this operation depends directly or indirectly, and to not be influenced by any of the writes which depend directly or indirectly on this operation.
operation| Modifier and Type | Method and Description |
|---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> ReadVariableOp<T> |
create(Scope scope,
Operand<?> resource,
Class<T> dtype)
Factory method to create a class to wrap a new ReadVariableOp operation to the graph.
|
Output<T> |
value() |
equals, hashCode, toStringpublic static <T> ReadVariableOp<T> create(Scope scope, Operand<?> resource, Class<T> dtype)
scope - current graph scoperesource - handle to the resource in which to store the variable.dtype - the dtype of the value.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.