tensorflow变量显示未初始化的错误(已经初始化)

TF1.8,会遇到变量未初始化的错误

img

img

Traceback (most recent call last):
File "D:\Python64\lib\site-packages\tensorflow\python\client\session.py", line 1322, in _do_call
return fn(*args)
File "D:\Python64\lib\site-packages\tensorflow\python\client\session.py", line 1307, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "D:\Python64\lib\site-packages\tensorflow\python\client\session.py", line 1409, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value output_layer/Variable
[[Node: output_layer/Variable/read = Identity

]]