DestroyTemporaryVariable

public final class DestroyTemporaryVariable

Destroys the temporary variable and returns its final value.

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'.

Public Methods

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 wrapping a new DestroyTemporaryVariable operation.
Output <T>

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 DestroyTemporaryVariable <T> create ( Scope scope, Operand <T> ref, String varName)

Factory method to create a class wrapping a new DestroyTemporaryVariable operation.

Parameters
scope current scope
ref A reference to the temporary variable tensor.
varName Name of the temporary variable, usually the name of the matching 'TemporaryVariable' op.
Returns
  • a new instance of DestroyTemporaryVariable

public Output <T> value ()