torch7
http://torch.ch
Torch7 is an early machine learning framework written in C with a Lua scripting layer, now unmaintained and preserved as a historical reference, with its ideas carried forward in modern PyTorch.
Torch7 is an early scientific computing framework built around a concept called tensors, which are multi-dimensional numerical arrays. Think of a tensor as a spreadsheet extended into more dimensions: a one-dimensional tensor is a list of numbers, a two-dimensional tensor is a grid, and so on. These structures are the basic building block for doing math at scale, particularly for machine learning, where you need to process large batches of data through mathematical operations quickly.
The framework was written in C, with a Lua scripting interface on top. It provided the tools researchers needed to build and train neural networks before the current generation of Python-based tools existed. Torch7 was used at major research labs and was influential in the development of deep learning during the early 2010s.
The README is direct about the current state of the project: it is no longer in active development. The underlying C libraries that Torch7 was built on (called TH, THNN, THC, and THCUNN) were rewritten and extended as part of PyTorch, which is now the dominant framework for this kind of work. The README points developers toward PyTorch as the continuation of this line of work.
What remains in this repository is the reference implementation and documentation. The Torch package itself covers tensor creation and manipulation, mathematical operations, file reading and writing, serialization (saving and loading objects), a timer, a command-line argument parser, and a random number generator. These are the foundational utilities a researcher would need when running experiments.
Community support as of 2019 is described as close to non-existent. The project is preserved here as a historical reference and for anyone maintaining legacy code that still depends on it.
Where it fits
- Study the historical design of tensor-based computing primitives that later evolved into PyTorch.
- Maintain or debug legacy research code that still depends on Torch7.
- Understand how scientific computing frameworks were structured before modern Python ML tools existed.