在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

本文介绍如何在使用TensorFlow 2.0时遇到'AttributeError: 'module' object has no attribute 'run_functions_eagerly''错误,通过添加tf.config.run_functions_eagerly(True)或tf.config.experimental_run_functions_eagerly(True)来解决。参考链接提供了详细解决方案。
15万+

被折叠的 条评论
为什么被折叠?



