Skip to content

Commit c7cc978

Browse files
committed
[Backend Tester] Mark adaptive avgpool2d as an unsupported portable op
ghstack-source-id: 51c68ce ghstack-comment-id: 3186214612 Pull-Request: #13398
1 parent 9ce66a4 commit c7cc978

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.ci/scripts/backend-test-linux.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ set -eux
88

99
SUITE=$1
1010
FLOW=$2
11+
ARTIFACT_DIR=$3
1112

1213
echo "Running backend test job for suite $SUITE, flow $FLOW."
14+
echo "Saving job artifacts to $ARTIFACT_DIR."
1315

1416
# The generic Linux job chooses to use base env, not the one setup by the image
1517
eval "$(conda shell.bash hook)"
@@ -22,4 +24,4 @@ conda activate "${CONDA_ENV}"
2224
# We need the runner to test the built library.
2325
PYTHON_EXECUTABLE=python .ci/scripts/setup-linux.sh --build-tool cmake --build-mode Release
2426

25-
python -m executorch.backends.test.suite.runner $SUITE --flow $FLOW --report test_results.csv
27+
python -m executorch.backends.test.suite.runner $SUITE --flow $FLOW --report "$ARTIFACT_DIR/test_results.csv"

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ jobs:
5050
docker-image: ci-image:executorch-ubuntu-22.04-clang12
5151
submodules: recursive
5252
timeout: 90
53+
upload-artifact: test-report-${{ matrix.flow }}-${{ matrix.suite }}
5354
script: |
5455
set -eux
5556
# Intentionally suppressing exit code for now.
5657
# TODO (gjcomer) Remove this when jobs are stable.
5758
EXIT_CODE=0
58-
.ci/scripts/backend-test-linux.sh "${{ matrix.suite }}" "${{ matrix.flow }}" || EXIT_CODE=$?
59+
.ci/scripts/backend-test-linux.sh "${{ matrix.suite }}" "${{ matrix.flow }}" "${RUNNER_ARTIFACT_DIR}" || EXIT_CODE=$?
5960
echo "Test run complete with exit code $EXIT_CODE."
60-

backends/test/suite/runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# Set of unsupported ops that should cause tests to be skipped
1616
UNSUPPORTED_PORTABLE_OPS = {
1717
"aten::_embedding_bag",
18+
"aten::_adaptive_avg_pool2d",
1819
"aten::median",
1920
"aten::median.dim",
2021
"aten::round.decimals",

0 commit comments

Comments
 (0)