Torch is an open source machine learning library, a scientific computing framework, and a scripting language based on the Lua programming language. It provides a wide range of algorithms for deep machine learning and uses the scripting language LuaJIT, and an underlying C implementation.

Torch is a scientific computing framework with wide support for machine learning algorithms that put GPUs first. It is easy to use and efficient, thanks to an easy and fast scripting language, LuaJIT, and an underlying C/CUDA implementation.

— Torch

A summary of core features:

  • a powerful N-dimensional array
  • lots of routines for indexing, slicing, transposing, …
  • amazing interface to C, via LuaJIT
  • linear algebra routines
  • neural network, and energy-based models
  • numeric optimization routines
  • Fast and efficient GPU support
  • Embeddable, with ports to iOS and Android backends

Learn More