AMCT (TensorFlow)
This section uses Ubuntu 20.04 as an example to describe the pre-installation actions. The version mapping is as follows:
Type |
Version Requirement |
How to Obtain |
Remarks |
|---|---|---|---|
OS and version |
EulerOS release 2.0 (SP10) aarch64 |
cat /etc/*release && uname -m |
Only quantization on CPU is supported. |
OS and version |
Ubuntu 20.04 x86_64 |
Download the required software release from the Ubuntu official website and install it. Run the following command to query the installation: cat /etc/*release && uname -m |
Quantization on CPU or GPU is supported. |
OS and version |
Ubuntu 20.04 aarch64 |
Download the required software release from the Ubuntu official website and install it. Run the following command to query the installation: cat /etc/*release && uname -m |
Quantization on CPU or GPU is supported. |
OS and version |
KylinV10SP1 x86_64 |
- |
Only quantization on CPU is supported. |
OS and version |
openEuler 20.03 x86_64 |
- |
Only quantization on CPU is supported. |
OS and version |
UOS20 aarch64 |
- |
Only quantization on CPU is supported. |
CUDA toolkit/CUDA driver |
11.2 or 10.0 |
Obtain required packages for installation. For example, you can obtain the Toolkit package from the following URL, which contains the Driver package. |
You need to install the CUDA software to perform quantization on the GPU.
|
Python |
Python3.7.x, Python3.8.x, Python3.9.x Python 3.9.2 is recommended. |
For Ubuntu, Kylin V10 SP1, openEuler, and UOS, see Python 3.9.2 Installation on Ubuntu. For EulerOS, see Python Python3.9.2 Installation on EulerOS. |
|
TensorFlow |
2.6.5 or 1.15.0 |
For details, see Dependency Installation. |
Mapping between TensorFlow and Python versions:
|
numpy |
1.16.0–1.23.5 or 1.20.0–1.23.5 |
For details, see Dependency Installation. |
|
protobuf |
3.13.0+ |
For details, see Dependency Installation. |
- |