在TensorFlow(Keras)框架下第二次训练网络时,出现了AttributeError: module 'tensorflow_core._api.v2.config' has no attribute 'run_functions_eagerly'的错误,解决办法如下:
在导入tf库后,添加
tf.config.experimental_run_functions_eagerly(True)
或者添加
tf.config.run_functions_eagerly(True)
参考:
https://www.tensorflow.org/api_docs/python/tf/config/run_functions_eagerly