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 could I get scale and offset with scalar-type form? #38

Open
felixslu opened this issue Aug 23, 2023 · 0 comments
Open

How could I get scale and offset with scalar-type form? #38

felixslu opened this issue Aug 23, 2023 · 0 comments

Comments

@felixslu
Copy link

felixslu commented Aug 23, 2023

the scale and offset of UniformAffineQuantizer are tensor-type data after I finished quantization.
How to convert them to scalar data ,used to generate quantization form. @yhhhli
such as:

Encoding:{
bitwidth: integer
is_symmetric: string
max: float
min: float
offset: integer
scale: float
}

and

image

@felixslu felixslu changed the title How could I get scale and offset with scalar type form? How could I get scale and offset with scalar-type form? Aug 23, 2023
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