Skip to content

Commit 36d6de6

Browse files
committed
adaptor for moving ark.so to auto_round_exteion.ark
1 parent 653e542 commit 36d6de6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

auto_round/inference/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def dynamic_import_inference_linear(backend, config):
631631

632632
if "auto_round_kernel" in backend or "ark" in backend:
633633
try:
634-
import auto_round_kernel as ark # pylint: disable=E0401
634+
from auto_round_extension.ark import auto_round_kernel as ark # pylint: disable=E0401
635635
except Exception as e:
636636
raise ImportError("Please install auto_round_kernel version for CPU/XPU")
637637
import auto_round_extension.ark.qlinear as qlinear

auto_round_extension/ark/qlinear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from auto_round.utils import convert_dtype_torch2str, logger
2121

2222
try:
23-
import auto_round_kernel as ark
23+
from auto_round_extension.ark import auto_round_kernel as ark
2424

2525
ARK_INSTALLED = True
2626
except:

0 commit comments

Comments
 (0)