我遇到以下错误: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 - AttributeError : 'InputLayer' object has no attribute 'inbound_nodes' ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48485937/

10-11 19:42