tensorflow - 属性错误: module 'tensorflow.python.util.dispatch'

标签 tensorflow

我在代码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/

相关文章:

c# - 为什么它无法在构建为 dll 文件的 c++ 中全局声明一个类?

单(多核)CPU 设备上的 TensorFlow 执行

tensorflow - InvalidArgumentError : Matrix size-incompatible: In[0]: [256, 2048], In[1] : [256, 1024]

python - Tensorflow 定制培训 - ValueError : Variable dense/kernel/Adam/does not exist?

python - 保存和加载模型优化器状态

python - 如何解决 "ValueError: A ` Concatenate` 层需要具有匹配形状的输入(除了连接轴之外)”?

python - 用于 conv2d 和手动加载图像的 Keras input_shape

python - 使用 TensorFlow 的数据集 API 导致进程在 session 析构函数中挂起

tensorflow - 在 tensorflow 中跨 session 使用共享变量

python - Keras 中具有自定义损失的无监督编码