【发布时间】:2021-09-25 03:25:27
【问题描述】:
我正在尝试安装 plaidml-keras,以便可以在 python/jupyter 中将非 Nvidia GPU 与 Keras 一起使用。在清除了其他几个障碍后,我达到了:
plaidbench keras mobilenet
但它会出错两次
ImportError: cannot import name 'object_list_uid' from 'keras.utils.generic_utils' (/Users/me/sprinthive/src/notebooks/nbenv/lib/python3.7/site-packages/keras/utils/generic_utils.py)
File "/Users/me/sprinthive/src/notebooks/nbenv/lib/python3.7/site-packages/plaidbench/frontend_keras.py", line 321, in __init__
raise core.ExtrasNeeded(['plaidml-keras'])
plaidbench.core.ExtrasNeeded: Missing needed packages for benchmark; to fix, pip install plaidml-keras
尽管已经安装了 plaidml-keras:
pip freeze | grep plaid
plaidbench==0.6.4
plaidml==0.6.4
plaidml-keras==0.6.4
[我正在使用 0.6.4 使其在 macOS 10.13 High Sierra 上运行]
如何解决以上错误?
谢谢!
【问题讨论】: