您的位置:首页 > 其它

深度学习笔记整理-pycharm环境下开发及运行

2017-12-21 14:41 351 查看
1. 关于软件安装: Anaconda---->>>安装python3.6 package---->>>安装pycharm IDE------->>>配置interpretation

                                              ----->>>安装tensorflow backend------>>>安装theano------->>>安装keras、pandas等(根据需求tensorflow和theano二选一)

2. 新建project:配置interpretation------>>>测试代码 运行 

3. 遇到的问题:

     1) theano提示g++.exe文件无法发现,由于tensorflow需要c编译器,调用CPU和GPU

WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.

    解决方法:

conda install mingw libpython

     2)tensorflow会优先使用全部GPU,给系统预留200M

“Your CPU supports instructions that this TensorFlow binary was not compiled”

    解决办法:

设置提示信息的等级:在import tensorflow 前加上   

import os

os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'   #只显示warning和errors
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息