tf.is_variable_initialized(variable)

tf.is_variable_initialized(variable)

See the guide: Variables > Variable helper functions

Tests if a variable has been initialized.

Args:

  • variable: A Variable.

Returns:

Returns a scalar boolean Tensor, True if the variable has been initialized, False otherwise.

Defined in tensorflow/python/ops/variables.py.