Skip to content

Commit 1f33a77

Browse files
generatedunixname89002005232357facebook-github-bot
authored andcommitted
Revert D64082731 (#6314)
Summary: Pull Request resolved: #6314 This diff reverts D64082731 https://github.com/pytorch/executorch/actions/runs/11371717440 Reviewed By: cccclai Differential Revision: D64507094 fbshipit-source-id: 0f02a7dff4f108ea79f31324005807f778d69e6e
1 parent 6a27cd1 commit 1f33a77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backends/qualcomm/utils/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import operator
88
import warnings
99
from collections import OrderedDict
10-
from typing import Callable, Dict, FrozenSet, List, Set, Tuple
10+
from typing import Callable, Dict, List, Set, Tuple
1111

1212
import executorch.backends.qualcomm.python.PyQnnManagerAdaptor as PyQnnManagerAdaptor
1313

@@ -291,8 +291,9 @@ def get_decomp_table() -> Dict[torch._ops.OperatorBase, Callable]:
291291

292292

293293
def _transform(
294-
edge_program: ExportedProgram, custom_pass_config: FrozenSet[str] = frozenset()
295-
) -> ExportedProgram:
294+
edge_program: ExportedProgram, custom_pass_config: Set[str] = None
295+
) -> None:
296+
custom_pass_config = custom_pass_config or {}
296297
# currently ExirExportedProgram.transform does not accept
297298
# changes of input number which was caused by FoldQDQ
298299
# apply passes one by one here to avoid IR capture failure
@@ -324,7 +325,6 @@ def _transform(
324325
edge_program.graph_module,
325326
)
326327
edge_program._validate()
327-
return edge_program
328328

329329

330330
def capture_program(

0 commit comments

Comments
 (0)