File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111# To support quantize op lowering in AOT
1212try :
13- import executorch .extension .pybindings .portable_lib # noqa[F401]
1413 import executorch .kernels .quantized # noqa[F401]
1514except :
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
2221import torch
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 \
You can’t perform that action at this time.
0 commit comments