how to convert each float32 value to int8?
Jasperty opened this issue · comments
poke commented
how to convert each float32 value to int8? where is the code about this?
Jinhyuk Lee commented
Hi @Jasperty,
float to int conversion code is here:
https://github.com/uwnlp/denspi/blob/7762bfbc914346bb5ad933d44c6f8b95454cf62d/post.py#L574-L578
FYI, dequantization (int to float) is here:
https://github.com/uwnlp/denspi/blob/7762bfbc914346bb5ad933d44c6f8b95454cf62d/open/mips.py#L15-L16
Thank you.