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

ONNX Add regression test #1530

Merged
merged 29 commits into from
Feb 14, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Relax criteria
  • Loading branch information
kshpv committed Feb 3, 2023
commit 5e8cd98fd2cbd23e607b2a9bef6a53dd9b23f67f
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ def transform_fn(data_item):
onnx.save_model(quantized_model, str(int8_model_path))
int8_top1 = validate(int8_model_path, val_loader)
print(f'INT8 metrics = {int8_top1}')
assert abs(int8_top1 - int8_ref_top1) < 1e-6 # 0.01 deviations
assert abs(int8_top1 - int8_ref_top1) < 3e-3 # 0.03 deviations