參考:https://www.jianshu.com/p/9e706ca6f5e3
https://blog.csdn.net/zouyu1746430162/article/details/79510773
torch7
http://torch.ch/docs/getting-started.html#_
官方自帶腳本:
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install
bash install-deps:報錯 將install-deps文件中的 將那個python-*-*的替換爲 software-properties-common
success.
下面安裝cuda8.0。使用的是deb包安裝。
cudnn7對應於cuda8.0版本
###按照教程
luarocks install cutorch
luarocks install cunn
安裝cutorch gcc版本不能大於5.0 要降級 https://blog.csdn.net/qq_33160790/article/details/80464473
git clone https://github.com/soumith/cudnn.torch -b R7
cd cudnn.torch
luarocks make
R7代表 cudnn7版本 要對。