Environment Setup

  • Install the development toolkit Ascend-cann-toolkit_{version}_linux-{arch}.run or the deep learning engine package Ascend-cann-nnae_{version}_linux-{arch}.run, as well as the framework package. For details, see Environment Setup.
  • Install the dependencies listed in Table 1.
    Table 1 Dependency information

    Dependency

    Version

    gcc

    8.4 or later

    You can run the cc --version or c++ --version command to check the GCC version in use.

    NOTE:

    If GCC 9.x is used, Bazel compilation will fail. Therefore, GCC 9.x is not recommended. If you have to use it, click here to rectify related faults.

    g++

    zip

    Any version

    unzip

    libtool

    automake

    Python

    3.7.5

    TensorFlow

    1.15.0

    tensorflow-serving-api

    1.15.0

    future

    Any version

    bazel

    0.24.1 or later

    CMake

    3.14.0 or later

    swig

    • If the operating system architecture is aarch64, the software version must be 3.0.12 or later.
    • If the operating system architecture is x86_64, the software version must be 4.0.1 or later.