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

No implemantation of convolve_s8_kernel3_stride1_pad1_fpreq() #82

Open
wslong36 opened this issue May 9, 2023 · 1 comment
Open

No implemantation of convolve_s8_kernel3_stride1_pad1_fpreq() #82

wslong36 opened this issue May 9, 2023 · 1 comment

Comments

@wslong36
Copy link

wslong36 commented May 9, 2023

Hey, @meenchen

I found that there is no kernel of convolve_s8_kernel3_stride1_pad1_fpreq(),

Would you mind upload this kernel of tiny engine?

Or, How should I use int_forward_op/convolve_s8_kernel3_stride1_pad1.c to implement convolve_s8_kernel3_stride1_pad1_fpreq()?

@meenchen
Copy link
Contributor

Hi. @wslong36,

The only difference between fpreq and other ops is how outputs are re-quantized. fpreq means re-quantizing outputs with a fp32 scale (e.g.,

ch_0_out_0 = (q31_t) ((float) ch_0_out_0 * scale_0);
), while other ops follow the TFLite approach.

You can also use the fp_requantize flag in code generator to disable it (e.g.,

fp_requantize=True,
).

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