我遇到以下错误: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/