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 can I get the scale of the QAdaptiveActivation layer #114

Open
KaiyiZhang-uo opened this issue Feb 11, 2023 · 0 comments
Open

How can I get the scale of the QAdaptiveActivation layer #114

KaiyiZhang-uo opened this issue Feb 11, 2023 · 0 comments

Comments

@KaiyiZhang-uo
Copy link

1676141811840
As shown in the comment, the QAdaptiveActivation layer can be used to calculate the EMA of min and max of the activation values, i.e., the quantization range of the activations tensor.
After we have the quantization range and the number of quantization levels (e.g., 256 for INT8), we can get the scale.
However, I did not find the scale attribute in the QAdaptiveActivation layer.

So how can I get the scale of the QAdaptiveActivation layer?

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

1 participant