📌  相关文章
📜  AttributeError:模块 'tensorflow' 没有属性 'global_variables_initializer' - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:34.254000             🧑  作者: Mango

代码示例1
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