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