Ale*_*rin 5 python keras tensorflow coreml coremltools
我有以下错误: 运行此脚本时https://pastebin.com/X7146Ury.
AttributeError: 'InputLayer' object has no attribute 'inbound_nodes'
Run Code Online (Sandbox Code Playgroud)
在Keras的最新版本中,这被重命名为_inbound_nodes(注意添加的下划线).您正在使用的coremltools版本似乎与Keras版本不兼容.
但是,GitHub上的最新版本似乎确实使用了新_inbound_nodes名称.我建议你安装它,使用:
pip install -U git+https://github.com/apple/coremltools.git
Run Code Online (Sandbox Code Playgroud)