Lua is a very simple, compact and efficient interpreter/compiler with a straightforward syntax. It is used widely as a scripting language in the computer game industry. Torch extends Lua with an extensive numerical library and various facilities for machine learning and computer vision.
Torch has computational back-ends for multicore/multi-CPU machines (using Intel/AVX and OpenMP), NVidia GPUs (using CUDA), and ARM CPUs (using the Neon instruction set).
Many research projects at the CILVR Lab are built with Torch.
Quick Installation of Torch on Ubuntu and Mac OSX
Type the following command in your shell:
sudo curl -s https://raw.github.com/clementfarabet/torchinstall/master/install-all | bash
and type your sudo password when prompted.
This line will download, compile, and install Torch (or update it if you have installed it otherwise). This will also download and install all the pre-requisite packages (including homebrew on Mac OS).
This script will also install all the commonly-used optional Torch packages.
Note that this script will only work on Ubuntu and Mac OS.
If you don't have sudo privileges, you can type the above without the leading “sudo”, but you need to manually install the required packaged beforehand.
For more details go to https://github.com/clementfarabet/torchinstall.
Manual installation on Linux and Mac OSX
Go to http://www.torch.ch/manual/install/index and follow instructions.
Then go to http://www.torch.ch/manual/packages to see a list of optional packages, and install them with:
torch-pkg install <package-name>
Torch7 is not completely supported on Windows yet. The simplest thing is to download this Ubuntu virtual machine, which includes a pre-compiled, pre-installed version of Torch. This virtual machine requires VirtualBox.
Torch/Lua On-line resources
Torch Tutorial for Machine Learning