python - 属性错误 : 'InputLayer' object has no attribute 'inbound_nodes'

标签 python tensorflow keras coreml coremltools

我遇到以下错误:https://pastebin.com/X7146Ury 运行此 script 时.

AttributeError: 'InputLayer' object has no attribute 'inbound_nodes'

最佳答案

在最新版本的 Keras 中,它被重命名为 _inbound_nodes(注意添加的下划线)。您使用的 coremltools 版本似乎与该 Keras 版本不兼容。

但是,GitHub 上的最新版本确实似乎使用了新的 _inbound_nodes 名称。我建议你安装它,使用:

pip install -U git+https://github.com/apple/coremltools.git

关于python - 属性错误 : 'InputLayer' object has no attribute 'inbound_nodes' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48485937/

相关文章:

python - 在 sys.exit() 之外的 pyqt 应用程序上调用 exec_()

python - 运行后如何清理有毒环境?

python - 在 Ubuntu 上 Dockerized Django

Python CSV : Grab all values in row with conditions for time values

tensorflow - Adam Optimizer减轻体重的正确方法是什么

python - 在TensorFlow中展平包含向量的2D张量的最佳方法?

python - 凯拉斯 |类型错误 : __init__() missing 1 required positional argument: 'nb_col'

python - Tensorflow - 用我自己的图像测试 mnist 神经网络

python - 如何将 MNIST 数据加载到 Google Colab Jupyter Notebook 中?

python - 将不同的 Keras 模型合并为一个