python - PlaidML 环境
问题描述
我正在尝试使用特定环境安装 PlaidML,但未安装正确版本的 Keras 和 Tensorflow,或者安装了正确版本但未使用 PlaidML 后端。
我的 requirements.txt 文件是
scikit-learn
scikit-image
matplotlib
seaborn
ipython
jupyter
scipy
numpy
pandas
pillow
pydot
coremltools==3.0
plaidml==0.6.4
plaidbench==0.6.4
keras==2.2.4
tensorflow==1.14
我的 Python 代码以
import os
os.environ["KERA_BACKEND"] = "plaidml.keras.backend"
import keras
有没有关于如何使用特定库设置 PlaidML 的示例?
解决方案
推荐阅读
- api - REST API OPTIONS 可以用作 HATEOAS 唯一的请求吗?
- git - Bamboo 找不到 Git 子模块
- android - 如何使用 Gradle 从 Maven 获取/打印已解析的依赖项组、名称和版本?
- javascript - 从 CodeSandbox 导出 ZIP 后无法在模块外使用导入语句
- python - 我们需要做些什么来修复这个等式,以便它在我们的 Python 代码中工作?
- r - 使用与列同名的参数过滤小标题的函数
- sqlite - Flutter FutureBuilder 不使用来自 sqlite 的数据构建
- python - 创建根据数据帧中的行自动递增的称为 ID 的列
- javascript - 为什么我的用于获取当前 URL 的 Chrome 扩展脚本不起作用?
- google-apps-script - How to send a HTML email with attachment using MailApp in Google Apps Script?