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

Fix ut failure for GPU backend #1712

Merged
merged 3 commits into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion neural_compressor/adaptor/onnxrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ def __init__(self, framework_specific_info):

self.work_space = framework_specific_info["workspace_path"]
self.reduce_range = (
framework_specific_info["reduce_range"] if "reduce_range" in framework_specific_info else not CpuInfo().vnni
framework_specific_info["reduce_range"]
if framework_specific_info.get("reduce_range", None) is not None
else not CpuInfo().vnni
)
self.benchmark = GLOBAL_STATE.STATE == MODE.BENCHMARK
os.makedirs(self.work_space, exist_ok=True)
Expand Down
Loading