Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::IsVariableInitialized
#include <state_ops.h>
Checks whether a tensor has been initialized.
Summary
Outputs boolean scalar indicating whether the tensor has been initialized.
Arguments:
- scope: A Scope object
- ref: Should be from a
Variable
node. May be uninitialized.
Returns:
Output
: The is_initialized tensor.
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
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.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 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/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- ref: Should be from a [Variable](/versions/r1.15/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/r1.15/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/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/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/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_is_variable_initialized_1ad7451f953a585b9bf007335930c6f930) | [Operation](/versions/r1.15/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```"]]