📅  最后修改于: 2022-03-11 14:56:34.254000             🧑  作者: Mango
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