首页 文章

AttributeError:'InputLayer'对象没有属性'inbound_nodes'

提问于
浏览
2

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

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

1 回答

  • 6

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

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

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

相关问题