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

[How-To] Quantize my own model in Tensorflow using this approach? #4

Open
mahimairaja opened this issue Jul 31, 2023 · 1 comment
Open

Comments

@mahimairaja
Copy link

No description provided.

@jundaf2
Copy link
Owner

jundaf2 commented Jul 31, 2023

This dynamic quantization simply leverage the fact that
(1) the global max of the matrix P is not necessarily the max value of each line of matrix P
(2)you know the max and min value in the softmax computation of a line on the fly -- it's the inherit property of softmax, i.e. the numerators in every line is between [0,1]
, so you can leverage this fact without passing addtional global quantization information of matrix $P$.

Thanks.

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

No branches or pull requests

2 participants