tf.assert_variables_initialized
bookmark_border bookmark
Stay organized with collections
Save and categorize content based on your preferences.
Returns an Op to check if variables are initialized.
View aliases
Compat aliases for migration
See
Migration guide for
more details.
tf.compat.v1.assert_variables_initialized
tf . assert_variables_initialized (
var_list = None
)
Note: This function is obsolete and will be removed in 6 months. Please
change your implementation to use report_uninitialized_variables()
.
When run, the returned Op will raise the exception FailedPreconditionError
if any of the variables has not yet been initialized.
Note: This function is implemented by trying to fetch the values of the
variables. If one of the variables is not initialized a message may be
logged by the C++ runtime. This is expected.
Args
var_list
List of Variable
objects to check. Defaults to the value of
global_variables().
Returns
An Op, or None if there are no variables.
Note: The output of this function should be used. If it is not, a warning will be logged. To mark the output as used, call its .mark_used() method.
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-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[]]