How To Install libarmnn22 on Ubuntu 22.04

In this tutorial we learn how to install libarmnn22 on Ubuntu 22.04. libarmnn22 is Arm NN is an inference engine for CPUs, GPUs and NPUs

Introduction

In this tutorial we learn how to install libarmnn22 on Ubuntu 22.04.

What is libarmnn22

libarmnn22 is:

Arm NN is a set of tools that enables machine learning workloads on any hardware. It provides a bridge between existing neural network frameworks and whatever hardware is available and supported. On arm architectures (arm64 and armhf) it utilizes the Arm Compute Library to target Cortex-A CPUs, Mali GPUs and Ethos NPUs as efficiently as possible. On other architectures/hardware it falls back to unoptimised functions.

This release supports Caffe, TensorFlow, TensorFlow Lite, and ONNX. Arm NN takes networks from these frameworks, translates them to the internal Arm NN format and then through the Arm Compute Library, deploys them efficiently on Cortex-A CPUs, and, if present, Mali GPUs.

This is the shared library package.

There are three methods to install libarmnn22 on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libarmnn22 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libarmnn22

Install libarmnn22 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libarmnn22 using apt by running the following command:

sudo apt -y install libarmnn22

Install libarmnn22 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libarmnn22 using aptitude by running the following command:

sudo aptitude -y install libarmnn22

How To Uninstall libarmnn22 on Ubuntu 22.04

To uninstall only the libarmnn22 package we can use the following command:

sudo apt-get remove libarmnn22

Uninstall libarmnn22 And Its Dependencies

To uninstall libarmnn22 and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove libarmnn22

Remove libarmnn22 Configurations and Data

To remove libarmnn22 configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge libarmnn22

Remove libarmnn22 configuration, data, and all of its dependencies

We can use the following command to remove libarmnn22 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libarmnn22

References

Summary

In this tutorial we learn how to install libarmnn22 package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.