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 wrapping a new ReadVariableOp operation.
|
Output<T> |
value() |
equals, hashCode, op, toString
public static <T> ReadVariableOp<T> create(Scope scope, Operand<?> resource, Class<T> dtype)
scope
- current scoperesource
- handle to the resource in which to store the variable.dtype
- the dtype of the value.public Output<T> asOutput()
Operand
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.
asOutput
in interface Operand<T>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.