From 883eb2fb38bc91d89d7986830372b7434a39730a Mon Sep 17 00:00:00 2001 From: "Feiyue.Chen" Date: Tue, 7 Jan 2025 14:45:15 +0800 Subject: [PATCH] Refine yaml file for blocking tfhub model tests Signed-off-by: Feiyue.Chen --- .github/workflows/cmake_x86_vsim.yml | 108 +++++++++++++-------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/.github/workflows/cmake_x86_vsim.yml b/.github/workflows/cmake_x86_vsim.yml index 02a60b028..f969db08a 100644 --- a/.github/workflows/cmake_x86_vsim.yml +++ b/.github/workflows/cmake_x86_vsim.yml @@ -12,7 +12,6 @@ env: LD_LIBRARY_PATH: ${{github.workspace}}/tim-vx-install/prebuilt-sdk/x86_64_linux/lib:${{github.workspace}}/tim-vx-install/build/lib:${{github.workspace}}/tim-vx-install/tim-vx.install.dir/lib VIVANTE_SDK_DIR: ${{github.workspace}}/tim-vx-install/prebuilt-sdk/x86_64_linux/ VSI_NN_LOG_LEVEL: 5 - VSIMULATOR_CONFIG: VIP9000NANOS_PID0XC5 jobs: tim-vx-build: @@ -100,6 +99,7 @@ jobs: LD_LIBRARY_PATH: ${{github.workspace}}/prebuilt-sdk/x86_64_linux/lib:${{github.workspace}}/build/lib:${{github.workspace}}/tim-vx.install.dir/lib VIVANTE_SDK_DIR: ${{github.workspace}}/prebuilt-sdk/x86_64_linux/ VIV_VX_DISABLE_TP_NN_EVIS: 1 + VSIMULATOR_CONFIG: VIP9000NANOS_PID0XC5 steps: - name: download tim-vx build output uses: actions/download-artifact@v3 @@ -124,7 +124,7 @@ jobs: run: | git config --global user.email "xiang.zhang@verisilicon.com" git config --global user.name "xiang.zhang" - git clone https://github.com/tensorflow/tensorflow.git ${{github.workspace}}/3rd-party/tensorflow && cd ${{github.workspace}}/3rd-party/tensorflow/ && git checkout v2.10.0 + git clone https://github.com/tensorflow/tensorflow.git ${{github.workspace}}/3rd-party/tensorflow && cd ${{github.workspace}}/3rd-party/tensorflow/ && git checkout v2.16.1 git clone https://github.com/VeriSilicon/tflite-vx-delegate.git ${{github.workspace}}/vx-delegate cmake -B ${{github.workspace}}/vx-delegate/build -S ${{github.workspace}}/vx-delegate -DFETCHCONTENT_SOURCE_DIR_TENSORFLOW=${{github.workspace}}/3rd-party/tensorflow -DTIM_VX_INSTALL=${{github.workspace}}/tim-vx.install.dir/ -DTFLITE_ENABLE_NNAPI=OFF -DTFLITE_ENABLE_XNNPACK=OFF cmake --build ${{github.workspace}}/vx-delegate/build --config ${{env.BUILD_TYPE}} @@ -283,61 +283,61 @@ jobs: # chmod u+x ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model # ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model --num_runs=1 --external_delegate_path=${{github.workspace}}/vx-delegate-bin/libvx_delegate.so --graph=${{github.workspace}}/tfhub.movenet.multipose.tflite - tfhub-efficientdet-lite0: - runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] - steps: - - name: download test binary - uses: actions/download-artifact@v3 - - name: download model - run: | - wget https://storage.googleapis.com/tfhub-lite-models/tensorflow/lite-model/efficientdet/lite0/detection/metadata/1.tflite - - name: benchmark-model - run: | - chmod u+x ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model - ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model --num_runs=1 --external_delegate_path=${{github.workspace}}/vx-delegate-bin/libvx_delegate.so --graph=${{github.workspace}}/1.tflite + # tfhub-efficientdet-lite0: + # runs-on: ubuntu-latest + # needs: [vx-delegate-build, tim-vx-unit-test] + # steps: + # - name: download test binary + # uses: actions/download-artifact@v3 + # - name: download model + # run: | + # wget https://storage.googleapis.com/tfhub-lite-models/tensorflow/lite-model/efficientdet/lite0/detection/metadata/1.tflite + # - name: benchmark-model + # run: | + # chmod u+x ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model + # ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model --num_runs=1 --external_delegate_path=${{github.workspace}}/vx-delegate-bin/libvx_delegate.so --graph=${{github.workspace}}/1.tflite - tfhub-efficientdet-lite1: - runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] - steps: - - name: download test binary - uses: actions/download-artifact@v3 - - name: download model - run: | - wget https://storage.googleapis.com/tfhub-lite-models/tensorflow/lite-model/efficientdet/lite1/detection/metadata/1.tflite - - name: benchmark-model - run: | - chmod u+x ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model - ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model --num_runs=1 --external_delegate_path=${{github.workspace}}/vx-delegate-bin/libvx_delegate.so --graph=${{github.workspace}}/1.tflite + # tfhub-efficientdet-lite1: + # runs-on: ubuntu-latest + # needs: [vx-delegate-build, tim-vx-unit-test] + # steps: + # - name: download test binary + # uses: actions/download-artifact@v3 + # - name: download model + # run: | + # wget https://storage.googleapis.com/tfhub-lite-models/tensorflow/lite-model/efficientdet/lite1/detection/metadata/1.tflite + # - name: benchmark-model + # run: | + # chmod u+x ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model + # ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model --num_runs=1 --external_delegate_path=${{github.workspace}}/vx-delegate-bin/libvx_delegate.so --graph=${{github.workspace}}/1.tflite - tfhub-efficientdet-lite2: - runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] - steps: - - name: download test binary - uses: actions/download-artifact@v3 - - name: download model - run: | - wget https://storage.googleapis.com/tfhub-lite-models/tensorflow/lite-model/efficientdet/lite2/detection/metadata/1.tflite - - name: benchmark-model - run: | - chmod u+x ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model - ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model --num_runs=1 --external_delegate_path=${{github.workspace}}/vx-delegate-bin/libvx_delegate.so --graph=${{github.workspace}}/1.tflite + # tfhub-efficientdet-lite2: + # runs-on: ubuntu-latest + # needs: [vx-delegate-build, tim-vx-unit-test] + # steps: + # - name: download test binary + # uses: actions/download-artifact@v3 + # - name: download model + # run: | + # wget https://storage.googleapis.com/tfhub-lite-models/tensorflow/lite-model/efficientdet/lite2/detection/metadata/1.tflite + # - name: benchmark-model + # run: | + # chmod u+x ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model + # ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model --num_runs=1 --external_delegate_path=${{github.workspace}}/vx-delegate-bin/libvx_delegate.so --graph=${{github.workspace}}/1.tflite - tfhub-efficientdet-lite3: - runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] - steps: - - name: download test binary - uses: actions/download-artifact@v3 - - name: download model - run: | - wget https://storage.googleapis.com/tfhub-lite-models/tensorflow/lite-model/efficientdet/lite2/detection/metadata/1.tflite - - name: benchmark-model - run: | - chmod u+x ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model - ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model --num_runs=1 --external_delegate_path=${{github.workspace}}/vx-delegate-bin/libvx_delegate.so --graph=${{github.workspace}}/1.tflite + # tfhub-efficientdet-lite3: + # runs-on: ubuntu-latest + # needs: [vx-delegate-build, tim-vx-unit-test] + # steps: + # - name: download test binary + # uses: actions/download-artifact@v3 + # - name: download model + # run: | + # wget https://storage.googleapis.com/tfhub-lite-models/tensorflow/lite-model/efficientdet/lite2/detection/metadata/1.tflite + # - name: benchmark-model + # run: | + # chmod u+x ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model + # ${{github.workspace}}/vx-delegate-bin/_deps/tensorflow-build/tools/benchmark/benchmark_model --num_runs=1 --external_delegate_path=${{github.workspace}}/vx-delegate-bin/libvx_delegate.so --graph=${{github.workspace}}/1.tflite # acuity-yolov3-608-quant: # runs-on: ubuntu-latest