cpu、gpu 安装框架pytorch,cntk,theano及测试
一,cpu 下安装 tensorflow conda env list source activate tensorflow 直接安装相应版本 python import tensorflow as tf tf.__version__ 1.11.0 keras 直接安装 conda env list source activate keras import keras 2.2.2 print(keras.__version__) import tensorflow as tf tf.__version__ pytorch import torch print(torch.__version__) print(torch.cuda.device_count()) print(torch.cuda.is_available()) cntk /root/anaconda3/bin/conda env list source activate cntk-py35 python 3.5.6 export PATH=/root/anaconda3/bin:$PATH python -c "import cntk; print(cntk.__version__)" theano caffe2 python 3.6.9 import caffe2 安装 conda create -n caffe2