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 QuantHardTanh works #746

Closed
wanglu4042 opened this issue Nov 1, 2023 · 1 comment
Closed

How QuantHardTanh works #746

wanglu4042 opened this issue Nov 1, 2023 · 1 comment

Comments

@wanglu4042
Copy link

Hi, I have a question for QuantHardTanh.
I set it like the picture downbelow.
image

but after I saved the module as onnx, I found that QuantHardTanh was changed like this.
image

And in FINN, it was like this:
image

And all parameters were set to float32, especially the part called MultiThreshold, it had the parameters like this:
image

Could you please tell me, how are these numbers calculated when they are INT8 and also in float32?
Thanks!!
Looking forward to your reply!

@Giuseppe5
Copy link
Collaborator

Hi,

Generally speaking, it is always useful to have a minimal script to reproduce your observations, including versions of the packages involved.

Many 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