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

The solution is as follows: This problem occurs in the running code, the reason is that tensorflow updated tf.global_variables_initializer()

Changing it to tf.initialize_all_variables() solved the problem

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325815023&siteId=291194637