AMCT (TensorFlow)

Install software as the AMCT installation user. If the said user is a non-root user, check that the user has the sudo permission. Then run the su - username command to switch to the non-root user and run the commands listed in the following table. (If the installation user is root, delete --user from the dependency installation command.)

Table 1 Dependencies

Dependency

Version

Installation Command

Python

3.9.2 or 3.7.5

For Ubuntu, Kylin V10 SP1, openEuler, and UOS, see Python 3.9.2 Installation on Ubuntu.

For EulerOS, see Python3.9.2 Installation on EulerOS.

TensorFlow

2.19.0, 2.6.5, or 1.15.0

Install the CPU or GPU version as needed. EulerOS (AArch64) does not support quantization on the GPU.

  • CPU version of TensorFlow 2.19.0
    python3 -m pip install tensorflow-cpu==2.19.0 --user
  • GPU version of TensorFlow 2.19.0
    python3 -m pip install tensorflow-gpu==2.19.0 --user
  • CPU version of TensorFlow 2.6.5
    python3 -m pip install tensorflow-cpu==2.6.5 --user
  • GPU version of TensorFlow 2.6.5
    python3 -m pip install tensorflow-gpu==2.6.5 --user
  • CPU version of TensorFlow 1.15
    python3 -m pip install tensorflow-cpu==1.15.0 --user
  • GPU version of TensorFlow 1.15
    python3 -m pip install tensorflow-gpu==1.15.0 --user
NOTICE:
  • If different TensorFlow versions are used, ensure that the Python version in your installation command is correct. (Change the environment variables to match the Python version in use.)
  • Currently, quantization is supported only in TensorFlow 1.15.0, whereas inferences during quantization can be run in both TensorFlow 1.15.0 and 2.6.5.

NumPy

2.0.0–2.1.3, 1.16.0–1.23.5, or 1.20.0–1.23.5

pip3 install numpy==2.0.0 --user
pip3 install numpy==1.16.0 --user
pip3 install numpy==1.20.0 --user

Protobuf

3.20.2+

pip3 install protobuf==3.20.3 --user
pip3 install protobuf==3.20.2 --user