T - data type for value() output@Operator public final class DestroyTemporaryVariable<T> extends PrimitiveOp implements Operand<T>
Sets output to the value of the Tensor pointed to by 'ref', then destroys the temporary variable called 'var_name'. All other uses of 'ref' must have executed before this op. This is typically achieved by chaining the ref through each assign op, or by using control dependencies.
Outputs the final value of the tensor pointed to by 'ref'.
operation| Modifier and Type | Method and Description |
|---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> DestroyTemporaryVariable<T> |
create(Scope scope,
Operand<T> ref,
String varName)
Factory method to create a class to wrap a new DestroyTemporaryVariable operation to the graph.
|
Output<T> |
value() |
equals, hashCode, toStringpublic static <T> DestroyTemporaryVariable<T> create(Scope scope, Operand<T> ref, String varName)
scope - current graph scoperef - A reference to the temporary variable tensor.varName - Name of the temporary variable, usually the name of the matching
'TemporaryVariable' op.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.