-
Notifications
You must be signed in to change notification settings - Fork 653
NXP backend: Use default (non-shared) quantization params for HardTanh #12893
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
NXP backend: Use default (non-shared) quantization params for HardTanh #12893
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12893
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit bb7d8ce with merge base 4197fc1 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
I created issues for the two introduced TODOs: |
614da96
to
effe5e9
Compare
@pytorchbot label "release notes: nxp" |
c35e001
to
e4445ff
Compare
Although correct for case, when the HardTanh is isolated, so approve to merge it (given the test passes). But we must resolve the Conv/Matmul + Activation quantization better - #13063. |
@pytest.mark.parametrize( | ||
"activation_range", list(HardTanhConverter.supported_modes_map.keys()) | ||
) | ||
@pytest.mark.parametrize("inplace", [True, False]) | ||
def test_custom_hardtanh_quant( | ||
mocker, input_shape: tuple[int], activation_range: tuple[int, int], inplace: bool | ||
): | ||
# TODO: This test suffers from non-ideal testing random quantization, because we always use range <0,1>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: #13063
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
e4445ff
to
bb7d8ce
Compare
…pytorch#12893) ### Summary Replaces shared quantization parameters specs for standard `QuantizationSpec` in HardTanh operator. ### Test plan Unit test files update to correspond to this change. cc @skywall Co-authored-by: Lukas Sztefek <[email protected]>
Summary
Replaces shared quantization parameters specs for fixed ones in HardTanh operator.
Test plan
Existing unit test files were updated to correspond to this change.
cc @skywall