tensorflow:: אופס:: IsVariableInitialized
#include <state_ops.h>
בודק אם טנזור אותחל.
תַקצִיר
מוציא סקלאר בוליאני המציין אם הטנזור אותחל.
טיעונים:
החזרות:
-
Output
: הטנסור הוא_מתחולל.
בנאים והורסים | |
---|---|
IsVariableInitialized (const :: tensorflow::Scope & scope, :: tensorflow::Input ref) |
תכונות ציבוריות | |
---|---|
is_initialized | |
operation |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
תכונות ציבוריות
הוא_מתחולל
::tensorflow::Output is_initialized
מִבצָע
Operation operation
תפקידים ציבוריים
IsVariableInitialized
IsVariableInitialized( const ::tensorflow::Scope & scope, ::tensorflow::Input ref )
צוֹמֶת
::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-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[],null,["# tensorflow::ops::IsVariableInitialized Class Reference\n\ntensorflow::ops::IsVariableInitialized\n======================================\n\n`#include \u003cstate_ops.h\u003e`\n\nChecks whether a tensor has been initialized.\n\nSummary\n-------\n\nOutputs boolean scalar indicating whether the tensor has been initialized.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- ref: Should be from a [Variable](/versions/r2.1/api_docs/cc/class/tensorflow/ops/variable#classtensorflow_1_1ops_1_1_variable) node. May be uninitialized.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The is_initialized tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [IsVariableInitialized](#classtensorflow_1_1ops_1_1_is_variable_initialized_1a87a43164f781b7de92ab0823d3690a01)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` ref)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [is_initialized](#classtensorflow_1_1ops_1_1_is_variable_initialized_1a6b04d210b7237b4aaee54a3c45c99c41) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_is_variable_initialized_1ad7451f953a585b9bf007335930c6f930) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_is_variable_initialized_1ac5fbba3a4bc5e833b32bb936e0b683e2)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_is_variable_initialized_1a29ebeb12023c9b9cde27be7762678de3)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_is_variable_initialized_1afb0da459bb73412eaf8a43a4502ba69e)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### is_initialized\n\n```scdoc\n::tensorflow::Output is_initialized\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### IsVariableInitialized\n\n```gdscript\n IsVariableInitialized(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input ref\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```"]]