torch7安装

大神的链接点击打开链接

步骤:

sudo apt install git
git clone https://github.com/torch/distro.git ~/torch --recursive
cd torch
sudo bash install-deps

漫长的等待,得到结果:............

Skipping install of OpenBLAS - it is already installed.
==> Torch7's dependencies have been installed 
继续安装
sudo ./install.sh
非常漫长的等待
Prefix set to /usr/local/torch/install
Installing Lua version: LUAJIT21
Found CUDA on your machine. Installing CMake 3.6 modules to get up-to-date FindCUDA
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/torch/cmake/3.6/build
Install the project...

等待等待等待,,,,,

Do you want to automatically prepend the Torch install location
to PATH and LD_LIBRARY_PATH in your /home/jennifer/.bashrc? (yes/no)
[yes] >>> 
yes 


Not updating your shell profile.
You might want to
add the following lines to your shell profile:

. /usr/local/torch/install/bin/torch-activate

添加环境变量

sudo gedit ~/.bashrc
添加 
. /usr/local/torch/install/bin/torch-activate
保存source ~/.bashrc

输入th,得到下图:

  ______             __   |  Torch7

 /_  __/__  ________/ /   |  Scientific computing for Lua.
  / / / _ \/ __/ __/ _ \  |  Type ? for help
 /_/  \___/_/  \__/_//_/  |  https://github.com/torch
                          |  http://torch.ch
测定cudnn是否成功 
th> require‘cudnn’




  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值