Ronan Collobert (collober [at]


Torch3 is not compatible with Torch2. The structure is similar, but a lot of things have been simplified. There is no script to convert your Torch2 code, but it should be easy to do it. You should use Torch3 because it's easier to code with it, and because we provide tutorials for a quick start.


Torch is pretty easy to install under Unix and Linux systems, including Mac OS X. Before asking questions, Note that xmake is a fast (and easy) python script designed for compiling Torch. Makefiles are not needed anymore.

For people using MS Windows, two solutions are possible:


Several tutorials are provided for the beginner in Torch.

One-line documentation

If you are looking for a class, check the class hierarchy.
If you want to see the documentation for all classes, go there.