Torch安装

  1. curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
  2. git clone https://github.com/torch/distro.git ~/torch - -recursive
  3. cd ~/torch
  4. ./install.sh # and enter “yes” at the end to modify your bashrc
  5. source ~/.bashrc
  6. luarocks install nngraph
  7. luarocks install optim
  8. luarocks install nn
  9. git clone https://github.com/karpathy/char-rnn
  10. 测试:th train.lua -gpuid -1
  11. 参考:https://github.com/karpathy/char-rnn
  12. luarocks install nn
  13. luarocks install dpnn
  14. luarocks install torchx
  15. luarocks install rnn
  16. iTorch安装:参考facebook/iTorch
    • sudo apt-get install libzmq3-dev libssl-dev python-zmq
    • git clone https://github.com/facebook/iTorch.git
    • cd ~/iTorch
    • luarocks make
    • 如果之前没安装jupyter,要安装一下sudo pip install jupyter
    • 运行:itorch notebook
  17. Debug工具

    • 参考 zbs-torch
    • 参考ZeroBrane Studio
    • luarocks install mobdebug
    • git clone https://github.com/soumith/zbs-torch.git
    • cd zbs-torch
    • Start zbs from the zbs-torch directory with the command : ./zbstudio.sh
    • Start the debugger server from “Project->Start Debugger Server”
    • Change the interpreter to Torch-7 “Project->Lua Interpreter->Torch-7”
    • Add the following line to the top of the file you are debugging

      require('mobdebug').start()
    • 光标指到第一行,按绿色箭头,里面还有step over可单步执行,在watch中可添加变量观察

    • 命令行参数在”Project–Command Line Parameters” 里输入
  18. 图形化:sudo apt-get install graphviz -y
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值