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

Added support for unsigned identity quantization #1117

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

lecramdev
Copy link

No description provided.

@auphelia
Copy link
Collaborator

Hi @lecramdev,
Thank you for the PR!
Could you please sign-off your commit? To be compliant with our contribution guidelines: https://github.com/Xilinx/finn/blob/main/CONTRIBUTING.md
It should be possible to sign-off already pushed commits.

@pytest.mark.parametrize("quant", [Int8ActPerTensorFloat, Uint8ActPerTensorFloat])
def test_brevitas_quant_identity_export(abits, ishape, narrow, quant):
export_path = f"test_brevitas_quant_identity_export_{abits}_{narrow}_{quant}.onnx"
b_act = QuantIdentity(act_quant=quant, bit_width=abits, narrow=narrow)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please change narrow=narrow to narrow_range=narrow? We don't get an error for this because the object can take additional kwargs but it will not be correctly derived and so narrow doesn't get varied in the resulting QuantNode for this test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants