[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.compat.v1.assert_variables_initialized\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/python/ops/variables.py#L1951-L1991) |\n\nReturns an Op to check if variables are initialized. \n\n tf.compat.v1.assert_variables_initialized(\n var_list=None\n )\n\n| **Note:** This function is obsolete and will be removed in 6 months. Please change your implementation to use `report_uninitialized_variables()`.\n\nWhen run, the returned Op will raise the exception `FailedPreconditionError`\nif any of the variables has not yet been initialized.\n| **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.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------|-------------------------------------------------------------------------------------|\n| `var_list` | List of `Variable` objects to check. Defaults to the value of `global_variables().` |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| An Op, or None if there are no variables. ||\n\n\u003cbr /\u003e\n\n| **Note:** The output of this function should be used. If it is not, a warning will be logged or an error may be raised. To mark the output as used, call its .mark_used() method."]]