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

about soft and hard quantization #30

Open
Linli621 opened this issue Apr 9, 2021 · 2 comments
Open

about soft and hard quantization #30

Linli621 opened this issue Apr 9, 2021 · 2 comments

Comments

@Linli621
Copy link

Linli621 commented Apr 9, 2021

hello, I don't figure out that when testing the model , why to use the hardout for the input of the P network .In my opinions ,the hardout and the symbols are equal in a sense .

@fab-jul
Copy link
Owner

fab-jul commented Sep 6, 2021

I think one contains values at the symbols. e.g. if your quantization grid is:

levels = [0.2, 0.5, 0.7]

and your symbols are

sym = [0, 0, 1, 0, 2]

then we would ahve

hardout = [0.2, 0.2, 0.5, 0.2, 0.7]

The important bit being that we can have non-uniform quantization.

@Linli621
Copy link
Author

Linli621 commented Sep 7, 2021

Thanks a lot, I have figured it out.^_^

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