Skip to content

Arm backend: Add TOSA 1.0 to TOSA targets in aot_arm_compiler #11132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions backends/arm/test/test_arm_baremetal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ _setup_msg="please refer to ${et_root_dir}/examples/arm/setup.sh to properly ins


TEST_SUITE=$1
TOSA_VERSION="${2:-TOSA-1.0+INT}"

# Source the tools
# This should be prepared by the setup.sh
Expand Down Expand Up @@ -138,8 +139,8 @@ test_run_ethosu_fvp() { # End to End model tests using run.sh

# TOSA quantized
echo "${TEST_SUITE_NAME}: Test ethos-u target TOSA"
examples/arm/run.sh --et_build_root=arm_test/test_run --target=TOSA --model_name=add
examples/arm/run.sh --et_build_root=arm_test/test_run --target=TOSA --model_name=mul
examples/arm/run.sh --et_build_root=arm_test/test_run --target=${TOSA_VERSION} --model_name=add
examples/arm/run.sh --et_build_root=arm_test/test_run --target=${TOSA_VERSION} --model_name=mul

# Ethos-U55
echo "${TEST_SUITE_NAME}: Test ethos-u target Ethos-U55"
Expand Down Expand Up @@ -168,17 +169,17 @@ test_models_tosa() { # End to End model tests using model_test.py

# TOSA quantized
echo "${TEST_SUITE_NAME}: Test ethos-u target TOSA"
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=TOSA --model=mv2
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=TOSA --model=mv3
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=TOSA --model=lstm
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=TOSA --model=edsr
# python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=TOSA --model=emformer_transcribe # Takes long time to run
# python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=TOSA --model=emformer_join # Takes long time to run
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=TOSA --model=w2l
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=TOSA --model=ic3
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=TOSA --model=ic4
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=TOSA --model=resnet18
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=TOSA --model=resnet50
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=${TOSA_VERSION} --model=mv2
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=${TOSA_VERSION} --model=mv3
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=${TOSA_VERSION} --model=lstm
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=${TOSA_VERSION} --model=edsr
# python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=${TOSA_VERSION} --model=emformer_transcribe # Takes long time to run
# python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=${TOSA_VERSION} --model=emformer_join # Takes long time to run
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=${TOSA_VERSION} --model=w2l
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=${TOSA_VERSION} --model=ic3
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=${TOSA_VERSION} --model=ic4
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=${TOSA_VERSION} --model=resnet18
python3 backends/arm/test/test_model.py --test_output=arm_test/test_model --target=${TOSA_VERSION} --model=resnet50

echo "${TEST_SUITE_NAME}: PASS"
}
Expand Down
3 changes: 2 additions & 1 deletion examples/arm/aot_arm_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ def forward(self, x: torch.Tensor, y: torch.Tensor):
"ethos-u85-1024",
"ethos-u85-2048",
"vgf",
"TOSA",
"TOSA-0.80+BI",
"TOSA-1.0+INT",
]


Expand Down
Loading