How To Install torch-core-free on Debian 10

Learn how to install torch-core-free on Debian 10 with this tutorial. torch-core-free is Scientific Computing Framework For Luajit (Core Components)

Introduction

In this tutorial we learn how to install torch-core-free on Debian 10.

What is torch-core-free

torch-core-free is:

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

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, Android and FPGA backends

The goal of Torch is to have maximum flexibility and speed in building your scientific algorithms while making the process extremely simple. Torch comes with a large ecosystem of community-driven packages in machine learning, computer vision, signal processing, parallel processing, image, video, audio and networking among others, and builds on top of the Lua community.

At the heart of Torch are the popular neural network and optimization libraries which are simple to use, while having maximum flexibility in implementing complex neural network topologies. You can build arbitrary graphs of neural networks, and parallelize them over CPUs and GPUs in an efficient manner.

This package is a metapackage, which pulls the following core and free modules for you: cwrap, paths, sys, xlua, torch7, nn, graph, nngraph, optim, sundown, dok, trepl, image.

Note that cutorch (CUDA backend for torch) and cunn (CUDA backend for neural network) are not present in this metapacakge - they will be shipped in the torch-core-contrib metapackage in the future.

There are three methods to install torch-core-free on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install torch-core-free Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install torch-core-free using apt-get by running the following command:

sudo apt-get -y install torch-core-free

Install torch-core-free Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install torch-core-free using apt by running the following command:

sudo apt -y install torch-core-free

Install torch-core-free Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install torch-core-free using aptitude by running the following command:

sudo aptitude -y install torch-core-free

How To Uninstall torch-core-free on Debian 10

To uninstall only the torch-core-free package we can use the following command:

sudo apt-get remove torch-core-free

Uninstall torch-core-free And Its Dependencies

To uninstall torch-core-free and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove torch-core-free

Remove torch-core-free Configurations and Data

To remove torch-core-free configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge torch-core-free

Remove torch-core-free configuration, data, and all of its dependencies

We can use the following command to remove torch-core-free configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge torch-core-free

Dependencies

torch-core-free have the following dependencies:

References

Summary

In this tutorial we learn how to install torch-core-free package on Debian 10 using different package management tools: apt, apt-get and aptitude.