-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update internal ovxlib to release/1.2.22 (#706)
* Update internal ovxlib to release/1.2.22 Signed-off-by: Feiyue.Chen <[email protected]> * Refine yaml file for blocking tfhub model tests Signed-off-by: Feiyue.Chen <[email protected]> --------- Signed-off-by: Feiyue.Chen <[email protected]>
- Loading branch information
1 parent
1498348
commit 8494275
Showing
94 changed files
with
9,470 additions
and
3,889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,7 +124,7 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.2.14 | ||
1.2.22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/tim/vx/internal/include/custom/ops/vsi_nn_op_custom_letterbox.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/**************************************************************************** | ||
* | ||
* Copyright (c) 2020 Vivante Corporation | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a | ||
* copy of this software and associated documentation files (the "Software"), | ||
* to deal in the Software without restriction, including without limitation | ||
* the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
* and/or sell copies of the Software, and to permit persons to whom the | ||
* Software is furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
* DEALINGS IN THE SOFTWARE. | ||
* | ||
*****************************************************************************/ | ||
#ifndef _VSI_NN_OP_CUSTOM_LETTERBOX_H | ||
#define _VSI_NN_OP_CUSTOM_LETTERBOX_H | ||
|
||
#include "vsi_nn_types.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef struct _vsi_nn_custom_letterbox_param | ||
{ | ||
struct _custom_letterbox_local_data_t* local; | ||
int32_t new_shape_w; | ||
int32_t new_shape_h; | ||
vx_bool auto_bool; | ||
vx_bool scaleFill; | ||
vx_bool scaleup; | ||
int32_t stride; | ||
vx_bool center; | ||
float mean_r; | ||
float mean_g; | ||
float mean_b; | ||
float scale_r; | ||
float scale_g; | ||
float scale_b; | ||
int32_t pad_value_r; | ||
int32_t pad_value_g; | ||
int32_t pad_value_b; | ||
vx_bool reverse_channel; | ||
} vsi_nn_custom_letterbox_param; | ||
_compiler_assert(offsetof(vsi_nn_custom_letterbox_param, local) == 0, \ | ||
vsi_nn_custom_lertterbox_h ); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,3 +203,4 @@ DEF_OP(BITCAST) | |
DEF_OP(GROUPED_CONV3D) | ||
DEF_OP(COL2IM) | ||
DEF_OP(L1_LAYER_NORM) | ||
DEF_OP(ROPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/**************************************************************************** | ||
* | ||
* Copyright (c) 2020 Vivante Corporation | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a | ||
* copy of this software and associated documentation files (the "Software"), | ||
* to deal in the Software without restriction, including without limitation | ||
* the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
* and/or sell copies of the Software, and to permit persons to whom the | ||
* Software is furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
* DEALINGS IN THE SOFTWARE. | ||
* | ||
*****************************************************************************/ | ||
|
||
#ifndef _VSI_NN_OP_ROPE_H | ||
#define _VSI_NN_OP_ROPE_H | ||
|
||
#include "vsi_nn_types.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef struct _vsi_nn_rope_param | ||
{ | ||
struct _rope_local_data_t* local; | ||
// Add parameters here | ||
int32_t axis; | ||
vsi_bool interleaved; | ||
} vsi_nn_rope_param; | ||
_compiler_assert(offsetof(vsi_nn_rope_param, local) == 0, \ | ||
vsi_nn_rope_h ); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.