tf.raw_ops.DestroyTemporaryVariable | TensorFlow v2.16.1 (original) (raw)
tf.raw_ops.DestroyTemporaryVariable
Stay organized with collections Save and categorize content based on your preferences.
Destroys the temporary variable and returns its final value.
View aliases
Compat aliases for migration
SeeMigration guide for more details.
tf.compat.v1.raw_ops.DestroyTemporaryVariable
tf.raw_ops.DestroyTemporaryVariable(
ref, var_name, name=None
)
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'.
Args | |
---|---|
ref | A mutable Tensor. A reference to the temporary variable tensor. |
var_name | A string. Name of the temporary variable, usually the name of the matching 'TemporaryVariable' op. |
name | A name for the operation (optional). |
Returns |
---|
A Tensor. Has the same type as ref. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.