From: torch.ch
Install Package:
$ git clone https://github.com/torch/distro.git ~/torch --recursive
$ cd ~/torch; bash install-deps;
$ ./install.sh
$ source ~/.bashrc
Install Package:
$ luarocks install image
List Package:
$ luarocks list
$ th
______ __ | Torch7
/_ __/__ ________/ / | Scientific computing for Lua.
/ / / _ \/ __/ __/ _ \ |
/_/ \___/_/ \__/_//_/ | https://github.com/torch
| http://torch.ch
/_ __/__ ________/ / | Scientific computing for Lua.
/ / / _ \/ __/ __/ _ \ |
/_/ \___/_/ \__/_//_/ | https://github.com/torch
| http://torch.ch
th> torch.Tensor{1,2,3}
1
2
3
[torch.DoubleTensor of dimension 3]
1
2
3
[torch.DoubleTensor of dimension 3]
th>
本文介绍了如何通过Git克隆并安装Torch7科学计算框架及其依赖项,同时还展示了如何安装特定的包如image,并提供了启动Torch7交互式解释器的示例。
1388

被折叠的 条评论
为什么被折叠?



