This repository was archived by the owner on Sep 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -891,7 +891,7 @@ def quantized_model(self) -> nn.Module:
891891 # Try loading custom op
892892 try :
893893 import glob
894- libs = glob .glob (f"{ torchao_build_path } /cmake-out/lib/libtorchao_ops_aten .*" )
894+ libs = glob .glob (f"{ torchao_build_path } /cmake-out/lib/liblinear_a8wxdq_ATEN .*" )
895895 libs = list (filter (lambda l : (l .endswith ("so" ) or l .endswith ("dylib" )), libs ))
896896 torch .ops .load_library (libs [0 ])
897897 except Exception as e :
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ install_torchao_aten_ops() {
185185 cmake -DCMAKE_PREFIX_PATH=${MY_CMAKE_PREFIX_PATH} \
186186 -DCMAKE_INSTALL_PREFIX=${CMAKE_OUT_DIR} \
187187 -DCMAKE_BUILD_TYPE=" Release" \
188- -DTORCHAO_OP_TARGET=" aten " \
188+ -DTORCHAO_OP_TARGET=" ATEN " \
189189 -S . \
190190 -B ${CMAKE_OUT_DIR} -G Ninja
191191 cmake --build ${CMAKE_OUT_DIR} --target install --config Release
@@ -201,7 +201,7 @@ install_torchao_executorch_ops() {
201201 cmake -DCMAKE_PREFIX_PATH=${MY_CMAKE_PREFIX_PATH} \
202202 -DCMAKE_INSTALL_PREFIX=${CMAKE_OUT_DIR} \
203203 -DCMAKE_BUILD_TYPE=" Release" \
204- -DTORCHAO_OP_TARGET=" executorch " \
204+ -DTORCHAO_OP_TARGET=" EXECUTORCH " \
205205 -DEXECUTORCH_INCLUDE_DIRS=" ${EXECUTORCH_INCLUDE_DIRS} " \
206206 -DEXECUTORCH_LIBRARIES=" ${EXECUTORCH_LIBRARIES} " \
207207 -S . \
You can’t perform that action at this time.
0 commit comments