【发布时间】:2018-02-17 05:10:45
【问题描述】:
我正在关注https://www.datacamp.com/community/tutorials/deep-learning-jupyter-aws 的教程。
我想连接到(CUDA 兼容)GPU 以在 Jupyter 笔记本中进行计算。按照上面链接的教程,我选择了 (AWS EC2) 深度学习 AMI ubuntu,p2.xlarge,并且实例正在运行。
使用 p2.xlarge 实例的 IP 地址登录云服务器后,我会按照教程中的操作导入 keras。但是,我得到的不是“使用 TensorFlow 后端......成功打开 CUDA 库”在 IPython 外壳中返回,而是:
In [1]: import keras
/home/ubuntu/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
/home/ubuntu/anaconda3/lib/python3.6/site-packages/matplotlib/__init__.py:962: UserWarning: Duplicate key in file "/home/ubuntu/.config/matplotlib/matplotlibrc", line #2
(fname, cnt))
/home/ubuntu/anaconda3/lib/python3.6/site-packages/matplotlib/__init__.py:962: UserWarning: Duplicate key in file "/home/ubuntu/.config/matplotlib/matplotlibrc", line #3
(fname, cnt))
谁能告诉我出了什么问题?另外,如果我让它工作,这个实例即使对于不涉及 keras 的计算也能工作(例如,用于减少 t-SNE 的数据维度)?
【问题讨论】:
-
这些都是警告,没有错误。您可以修复
matplotlibrc中的重复设置,但第一个警告来自库,通常应该由其开发人员在新版本中修复。 -
是的,但它没有像教程中那样在 shell 中显示“已成功打开 CUDA 库”。可以吗?谢谢。
标签: python amazon-ec2 jupyter-notebook