Skip to content

Commit 77e8229

Browse files
committed
Link PyQnnManagerAdaptor with quantized_ops_aot_lib.
1 parent 050b9cb commit 77e8229

4 files changed

Lines changed: 3 additions & 12 deletions

File tree

backends/qualcomm/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
320320
qnn_backend_options
321321
wrappers
322322
qnn_executorch_logging
323+
quantized_ops_aot_lib
323324
)
324325

325326
pybind11_extension(PyQnnManagerAdaptor)

backends/qualcomm/aot/python/targets.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def define_common_targets():
2626
"-DEXECUTORCH_PYTHON_MODULE_NAME={}".format(PYTHON_MODULE_NAME),
2727
],
2828
deps = [
29+
"//executorch/kernels/quantized:aot_lib",
30+
"//executorch/kernels/quantized:quantized_ops_lib",
2931
"//executorch/runtime/core:core",
3032
"//executorch/backends/qualcomm/aot/python:python_lib",
3133
"//executorch/backends/qualcomm/aot/wrappers:wrappers",

backends/qualcomm/quantizer/quantizer.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@
88
from functools import partial
99
from typing import Callable, Dict, List, Optional, Sequence, Set, Tuple
1010

11-
# To support quantize op lowering in AOT
12-
try:
13-
import executorch.kernels.quantized # noqa[F401]
14-
except:
15-
import logging
16-
17-
logging.info(
18-
"Failed to load quantized_aot_lib. To run on LPAI backend, please make sure that quantized_aot_lib is accessible."
19-
)
20-
del logging
2111
import torch
2212
from executorch.backends.qualcomm._passes.qnn_pass_manager import QnnPassManager
2313

backends/qualcomm/quantizer/targets.bzl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,5 @@ def define_common_targets():
1515
visibility = ["PUBLIC"],
1616
deps = [
1717
"//executorch/backends/transforms:decompose_sdpa",
18-
"//executorch/kernels/quantized:aot_lib",
19-
"//executorch/kernels/quantized:quantized_ops_lib",
2018
],
2119
)

0 commit comments

Comments
 (0)