What Should I Do If the tfadapter.tar File Is Not Generated After TF Adapter Build Is Complete?

Symptom

The system displays a message indicating that the compilation is successful, but the tfadapter.tar package is not generated in the output directory.

Solutions

The solution is to modify the tf_adapter_2.x/CI_Build file and perform recompilation.

  1. In the directory where the said file resides, run the following command to open the file:
    vim tf_adapter_2.x/CI_Build

    The modifications are as follows:

    CONFIGURE_DIR=$(dirname "$0")
    cd "${CONFIGURE_DIR}"
    
    ############## npu modify begin #############
    if [ "$(arch)" != "xxx" ];then
      mkdir -p build/dist/python/dist/
      touch build/dist/python/dist/npu_device-0.1-py3-none-any.whl
      exit 0
    fi
    ############## npu modify end ###############
    
    # The source code is as follows:
    if [ "$(arch)" != "x86_64" ];then
      mkdir -p build/dist/python/dist/
      touch build/dist/python/dist/npu_device-0.1-py3-none-any.whl
      exit 0
    fi
  2. Perform TF Adapter build again.