Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support xpu device #1348

Merged
merged 18 commits into from
Nov 22, 2023
Merged
Prev Previous commit
Next Next commit
fix bug
Signed-off-by: Xin He <xin3.he@intel.com>
xin3he committed Nov 1, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit d040a7a9b2a3ab2235b1e0f928491b6e0740018a
2 changes: 1 addition & 1 deletion neural_compressor/adaptor/pytorch.py
Original file line number Diff line number Diff line change
@@ -779,7 +779,7 @@ def __init__(self, framework_specific_info):
self.bf16_ops = []
self.use_bf16 = framework_specific_info.get("use_bf16", True)
self.device = framework_specific_info["device"]
self.backend = framework_specific_info["backend"]
self.backend = framework_specific_info.get("backend", "default")
self.q_dataloader = framework_specific_info["q_dataloader"]
self.q_func = framework_specific_info.get("q_func", None)
self.benchmark = GLOBAL_STATE.STATE == MODE.BENCHMARK