xir command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xir: command not found
or when using sudo you get the following error message
sudo: xir: command not found
Solutions to xir: command not found
How To Fix xir: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xir is provided by libxir-utils package.
libxir-utils is:
Xilinx Intermediate Representation (XIR) is a graph based intermediate representation of the AI algorithms which is well designed for compilation and efficient deployment of the Domain-specific Processing Unit (DPU) on the FPGA platform. Advanced users can apply Whole Application Acceleration to benefit from the power of FPGA by extending the XIR to support customized IP in Vitis AI flow.
XIR includes Op, Tensor, Graph and Subgraph libraries, which providing a clear and flexible representation for the computational graph. For now, it’s the foundation for the Vitis AI quantizer, compiler, runtime and many other tools. XIR provides in-memory format, and file format for different usage. The in-memory format XIR is a Graph object, and the file format is a xmodel. A Graph object can be serialized to a xmodel while the xmodel can be deserialized to the Graph object.
In the Op library, there’s a well-defined set of operators to cover the wildly used deep learning frameworks, e.g. TensorFlow, Pytorch and Caffe, and all of the built-in operators for DPU. This enhences the expression ability and achieves one of the core goals of eliminating the difference between these frameworks and providing a unified representation for users and developers.
XIR also provides a Python APIs which is named PyXIR. It enables Python users to fully access XIR and benefits in a pure Python environment, e.g. co-develop and integrate users’ Python project with the current XIR based tools without massive dirty work to fix the gap between two languages.
This package contains the utilities from XIR.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libxir-utils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libxir-utils.
sudo apt -y install libxir-utils
Or if you have aptitude installed you can use the following command.
sudo aptitude install libxir-utils
Summary
In this tutorial we learn how to fix xir command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.