tensorflow:: אופס:: DestroyTemporaryVariable
#include <state_ops.h>
הורס את המשתנה הזמני ומחזיר את הערך הסופי שלו.
תַקצִיר
מגדיר את הפלט לערך של ה- Tensor שאליו מצביע 'ref', ואז הורס את המשתנה הזמני שנקרא 'var_name'. כל שאר השימושים ב-'ref' חייבים להתבצע לפני הפעולה הזו. זה מושג בדרך כלל על ידי שרשרת השופט דרך כל הפעלה של הקצה, או על ידי שימוש בתלות בקרה.
מוציא את הערך הסופי של הטנזור שעליו הצביע 'ref'.
טיעונים:
- scope: אובייקט Scope
- ref: התייחסות לטנזור המשתנה הזמני.
- var_name: שם המשתנה הזמני, בדרך כלל השם של התואם ' TemporaryVariable ' op.
החזרות:
-
Output
: טנסור הערך.
בנאים והורסים | |
---|---|
DestroyTemporaryVariable (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, StringPiece var_name) |
תכונות ציבוריות | |
---|---|
operation | |
value |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
תכונות ציבוריות
מִבצָע
Operation operation
עֵרֶך
::tensorflow::Output value
תפקידים ציבוריים
DestroyTemporaryVariable
DestroyTemporaryVariable( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, StringPiece var_name )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# tensorflow::ops::DestroyTemporaryVariable Class Reference\n\ntensorflow::ops::DestroyTemporaryVariable\n=========================================\n\n`#include \u003cstate_ops.h\u003e`\n\nDestroys the temporary variable and returns its final value.\n\nSummary\n-------\n\nSets output to the value of the [Tensor](/versions/r2.2/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) pointed to by 'ref', then destroys the temporary variable called 'var_name'. [All](/versions/r2.2/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_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.\n\nOutputs the final value of the tensor pointed to by 'ref'.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- ref: A reference to the temporary variable tensor.\n- var_name: Name of the temporary variable, usually the name of the matching '[TemporaryVariable](/versions/r2.2/api_docs/cc/class/tensorflow/ops/temporary-variable#classtensorflow_1_1ops_1_1_temporary_variable)' op.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The value tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [DestroyTemporaryVariable](#classtensorflow_1_1ops_1_1_destroy_temporary_variable_1a01f12d953d9078e0133345ecad76f629)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` ref, StringPiece var_name)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_destroy_temporary_variable_1a0bfa0ecb725488b9065e4dfa42addfdc) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [value](#classtensorflow_1_1ops_1_1_destroy_temporary_variable_1a2a3151dd005ff60e1fbc92d9f72c51d0) | `::`[tensorflow::Output](/versions/r2.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_destroy_temporary_variable_1ab3002dc3d20c1e4e20f1fb219714c7e8)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_destroy_temporary_variable_1a36cd6c9de3fec498a9b6f32078402e1a)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_destroy_temporary_variable_1a94ad142b7443111409db522488894175)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### value\n\n```text\n::tensorflow::Output value\n``` \n\nPublic functions\n----------------\n\n### DestroyTemporaryVariable\n\n```gdscript\n DestroyTemporaryVariable(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input ref,\n StringPiece var_name\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n```"]]