Skip to content

Commit 5901797

Browse files
authored
Merge branch 'pytorch:main' into add-datasink-try-before-set-tests
2 parents 9c6097a + f95d42f commit 5901797

File tree

68 files changed

+1465
-667
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1465
-667
lines changed

.ci/scripts/test_qnn_static_llama.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# This source code is licensed under the BSD-style license found in the
66
# LICENSE file in the root directory of this source tree.
77

8-
set -exu
8+
set -euxo pipefail
99

1010
source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"
1111

@@ -56,4 +56,3 @@ if [ $exit_code1 -ne 0 ] || [ $exit_code2 -ne 0 ]; then
5656
else
5757
exit 0
5858
fi
59-
set -e

.ci/scripts/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ install_executorch() {
3232
which pip
3333
# Install executorch, this assumes that Executorch is checked out in the
3434
# current directory.
35-
./install_executorch.sh --pybind xnnpack "$@"
35+
./install_executorch.sh "$@"
3636
# Just print out the list of packages for debugging
3737
pip list
3838
}

.github/workflows/apple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
id: set_version
3838
shell: bash
3939
run: |
40-
VERSION="0.5.0.$(TZ='PST8PDT' date +%Y%m%d)"
40+
VERSION="0.7.0.$(TZ='PST8PDT' date +%Y%m%d)"
4141
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
4242
4343
build-demo-ios:

.github/workflows/pull.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,6 @@ jobs:
573573
574574
BUILD_TOOL="cmake"
575575
576-
./install_requirements.sh --use-pt-pinned-commit
577576
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-qnn-deps.sh
578577
PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
579578

backends/arm/test/ops/test_any.py

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from typing import List, Tuple
88

9+
import pytest
910
import torch
1011
from executorch.backends.arm.test import common
1112
from executorch.backends.arm.test.tester.test_pipeline import (
@@ -117,25 +118,6 @@ def forward(self, x: torch.Tensor):
117118
}
118119

119120

120-
fvp_xfails = {
121-
"any_rank1": "MLETORCH-706 Support ScalarType::Bool in EthosUBackend.",
122-
"any_rank1_squeeze": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
123-
"any_rank2": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
124-
"any_rank2_squeeze": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
125-
"any_rank2_dims": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
126-
"any_rank2_dims_squeeze": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
127-
"any_rank3_dims_squeeze": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
128-
"any_rank4": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
129-
"any_rank4_squeeze": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
130-
"any_rank4_dims": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
131-
"any_rank4_dims_squeeze": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
132-
"any_rank1_reduce_all": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
133-
"any_rank2_reduce_all": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
134-
"any_rank3_reduce_all": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
135-
"any_rank4_reduce_all": "MLETORCH-706: Support ScalarType::Bool in EthosUBackend.",
136-
}
137-
138-
139121
@common.parametrize("test_data", test_data)
140122
def test_any_tosa_MI(test_data: input_t1):
141123
op, test_input = test_data
@@ -147,13 +129,13 @@ def test_any_tosa_MI(test_data: input_t1):
147129
def test_any_tosa_BI(test_data: input_t1):
148130
op, test_input = test_data
149131
pipeline = TosaPipelineBI[input_t1](op, test_input, op.aten_op, op.exir_op)
150-
pipeline.pop_stage(pipeline.find_pos("quantize") + 1)
151132
pipeline.pop_stage("quantize")
133+
pipeline.pop_stage("check.quant_nodes")
152134
pipeline.run()
153135

154136

155137
@common.parametrize("test_data", test_data)
156-
def test_logical_u55_BI(test_data: input_t1):
138+
def test_any_u55_BI(test_data: input_t1):
157139
# Tests that we don't delegate these ops since they are not supported on U55.
158140
op, test_input = test_data
159141
pipeline = OpNotSupportedPipeline[input_t1](
@@ -163,23 +145,13 @@ def test_logical_u55_BI(test_data: input_t1):
163145

164146

165147
@common.parametrize("test_data", test_data)
166-
def test_floor_u85_BI(test_data: input_t1):
167-
op, test_input = test_data
168-
pipeline = EthosU85PipelineBI[input_t1](
169-
op, test_input, op.aten_op, op.exir_op, run_on_fvp=False
170-
)
171-
pipeline.pop_stage(pipeline.find_pos("quantize") + 1)
172-
pipeline.pop_stage("quantize")
173-
pipeline.run()
174-
175-
176-
@common.parametrize("test_data", test_data, fvp_xfails)
177-
@common.SkipIfNoCorstone320
178-
def test_floor_u85_BI_on_fvp(test_data: input_t1):
148+
@pytest.mark.xfail(reason="MLETORCH-706: Support ScalarType::Bool in EthosUBackend.")
149+
@common.XfailIfNoCorstone320
150+
def test_any_u85_BI(test_data: input_t1):
179151
op, test_input = test_data
180152
pipeline = EthosU85PipelineBI[input_t1](
181153
op, test_input, op.aten_op, op.exir_op, run_on_fvp=True
182154
)
183-
pipeline.pop_stage(pipeline.find_pos("quantize") + 1)
184155
pipeline.pop_stage("quantize")
156+
pipeline.pop_stage("check.quant_nodes")
185157
pipeline.run()

0 commit comments

Comments
 (0)