Skip to content

Commit 050b9cb

Browse files
committed
Fixed import target
1 parent 6e83abf commit 050b9cb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

backends/qualcomm/quantizer/quantizer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010

1111
# To support quantize op lowering in AOT
1212
try:
13-
import executorch.extension.pybindings.portable_lib # noqa[F401]
1413
import executorch.kernels.quantized # noqa[F401]
1514
except:
1615
import logging
1716

1817
logging.info(
19-
"Failed to load portable_lib and quantized_aot_lib. To run on LPAI backend, please build ExecuTorch with portable_lib"
18+
"Failed to load quantized_aot_lib. To run on LPAI backend, please make sure that quantized_aot_lib is accessible."
2019
)
2120
del logging
2221
import torch

backends/qualcomm/quantizer/targets.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def define_common_targets():
1515
visibility = ["PUBLIC"],
1616
deps = [
1717
"//executorch/backends/transforms:decompose_sdpa",
18-
"//executorch/extension/pybindings:portable_lib",
18+
"//executorch/kernels/quantized:aot_lib",
1919
"//executorch/kernels/quantized:quantized_ops_lib",
2020
],
2121
)

backends/qualcomm/scripts/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ if [ "$BUILD_X86_64" = true ]; then
364364
-DEXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR=ON \
365365
-DEXECUTORCH_BUILD_EXTENSION_NAMED_DATA_MAP=ON \
366366
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
367+
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED_AOT=ON \
367368
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
368369
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \
369370
-DEXECUTORCH_ENABLE_LOGGING=ON \

0 commit comments

Comments
 (0)