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 (gpxq): adding input quant to process input #943

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

i-colbert
Copy link
Collaborator

No description provided.

@@ -232,6 +232,8 @@ def process_input(self, inp):
batch_dim = inp.names.index('N')
inp.rename_(None)
inp = inp.transpose(0, batch_dim)

inp = self.layer.input_quant(inp)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unfortunately I think we need to do this before we start reshaping and adjusting dim, etc.
In case of activations with per-channel scale factor we could have unexpected behaviours

@Giuseppe5 Giuseppe5 merged commit bae1e26 into Xilinx:dev Apr 26, 2024
263 of 347 checks passed
@i-colbert i-colbert deleted the fix/gpxq-input-quant branch April 26, 2024 00:42
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