Answers for "AttributeError: module 'tensorflow' has no attribute 'global_variables_initializer'"

0

AttributeError: module 'tensorflow' has no attribute 'global_variables_initializer'

tf.compat.v1.global_variables_initializer()
 
or 

In older versions, it was called tf.initialize_all_variables.

source -> https://stackoverflow.com/questions/40511562/tensorflow-module-object-has-no-attribute-global-variables-initializer
Posted by: Guest on August-22-2021

Code answers related to "AttributeError: module 'tensorflow' has no attribute 'global_variables_initializer'"

Browse Popular Code Answers by Language