Pandipedia entry
Updated 17 Oct 20263 sourcesBrowse Pandipedia

Which programming language was used to write the initial version of the PyTorch

A comprehensive chronicle of PyTorch's evolution—from research tool to AI infrastructure powering modern deep learning, from 2001 to 2025 - AlirezaShamsoshoara/PyTorchHistory

The initial version of the PyTorch library grew out of Torch, an open-source machine learning library whose core was written in C and C++[1][2]. Around 2011, Torch was rewritten as Torch7, which used the Lua scripting language for its frontend with a C and C++ backend[3]. In mid-2016, developers at Facebook AI Research refactored it to create a Python-first framework, resulting in PyTorch[4].

As a quick historical tidbit, Torch was originally created in 2002 by the Idiap Research Institute[5][6] before its eventual transition into the Python-based PyTorch ecosystem in 2016[7].Ask a follow-upAnswer complete. One follow-up option available.

Cite this article

If you use material from this article, please credit PandiPedia and link to the original.

PandiPedia. “Which programming language was used to write the initial version of the PyTorch” .

Continue exploring
Browse all