Skip to content

Commit a95beb3

Browse files
committed
Use lib paths working with editable mode
1 parent 1a04d1f commit a95beb3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

backends/arm/test/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ def _load_lib(lib_name_pattern: str, build_folder: str):
195195
)
196196

197197

198-
def _load_libquantized_ops_aot_lib(executorch_install_dir: str = "pip-out"):
198+
def _load_libquantized_ops_aot_lib():
199199
"""
200200
Find and load the libquantized_ops_aot_lib shared library.
201201
"""
202-
_load_lib("_portable_lib.cpython-310*", executorch_install_dir)
203-
_load_lib("libquantized_ops_aot_lib.*", executorch_install_dir)
202+
_load_lib("_portable_lib.cpython-310*", "extension")
203+
_load_lib("libquantized_ops_aot_lib.*", "kernels")

examples/arm/aot_arm_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def get_args():
513513
# Load quantized ops library.
514514
if args.quantize:
515515
logging.info("Loading lib_quantized_custom_op_lib")
516-
_load_libquantized_ops_aot_lib(executorch_install_dir="pip-out")
516+
_load_libquantized_ops_aot_lib()
517517

518518
# if we have custom ops, register them before processing the model
519519
if args.so_library is not None:

0 commit comments

Comments
 (0)