我在代码import tensorflow as tf
中收到以下错误:
AttributeError: module 'tensorflow.python.util.dispatch' has no attribute 'add_fallback_dispatch_list'
有什么想法吗?
张量板2.4.0 张量板数据服务器 0.6.1 张量板插件机智 1.6.0 tensorflow 2.3.0 tensorflow 估计器 2.3.0 tensorflow -io-gcs-文件系统0.23.1
最佳答案
pip install --升级 tensorflow
对我有用,原来我使用的是 TensorFlow 2.6.0,并将其升级到 2.7.0 并且工作正常。
关于tensorflow - 属性错误: module 'tensorflow.python.util.dispatch' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70441937/