Skip to content

Commit ba54389

Browse files
authored
bypass the qnn sdk tests in the internal test (pytorch#18277)
bypass the tests required qnnsdk internally to bring ci back
1 parent 330df21 commit ba54389

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

backends/qualcomm/tests/test_passes.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,17 @@ def test_resolve_debug_handle(self):
176176
dump_intermediate_outputs=True,
177177
)
178178

179-
edge_prog_mgr = to_edge_transform_and_lower_to_qnn(
180-
module,
181-
sample_input,
182-
compiler_spec,
183-
generate_etrecord=True,
184-
)
179+
try:
180+
edge_prog_mgr = to_edge_transform_and_lower_to_qnn(
181+
module,
182+
sample_input,
183+
compiler_spec,
184+
generate_etrecord=True,
185+
)
186+
except RuntimeError as e:
187+
if "QNN" in str(e) or "qnn" in str(e):
188+
self.skipTest(f"QNN SDK not available: {e}")
189+
raise
185190
exec_prog_mgr = edge_prog_mgr.to_executorch()
186191
etrecord = exec_prog_mgr.get_etrecord()
187192
debug_handle_size = len(etrecord._debug_handle_map["forward"][0])

0 commit comments

Comments
 (0)