MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / is_variable_initialized

Function is_variable_initialized

tensorflow/python/ops/variables.py:3502–3512  ·  view source on GitHub ↗

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.

(variable)

Source from the content-addressed store, hash-verified

3500@tf_export(v1=["is_variable_initialized"])
3501@tf_should_use.should_use_result
3502def is_variable_initialized(variable):
3503 """Tests if a variable has been initialized.
3504
3505 Args:
3506 variable: A `Variable`.
3507
3508 Returns:
3509 Returns a scalar boolean Tensor, `True` if the variable has been
3510 initialized, `False` otherwise.
3511 """
3512 return state_ops.is_variable_initialized(variable)
3513
3514
3515@tf_export(v1=["assert_variables_initialized"])

Callers 1

initialized_valueMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected