-
Notifications
You must be signed in to change notification settings - Fork 825
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
micro: port op Reduce Prod from lite v2 #2527
Comments
First draw of the PR can be found here: PR #2532.
|
I still have issue with the Quantized reduce prod test. kInputData2D is {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
Then I have an error during the test: For me the output should be 127, 127. The expected output seems to be 48, 127. From my understanding if I am computing the reduce prod of the input, I am quantified the input first.
Both output are greater than the max value for int8 (127). I have the same wrong result with my own QuantizedProd implementation and the QuantizedReduceProd code already present in the repo. sorry I am not very familiar with Quantized operation. Did I missunderstand the quantized process? |
I would suggest re-using the QuantizedReduceProd in the reduce.h header. I'll take a look at the test in the PR. |
Hello @rascani. I just pushed into the PR branch the problematic test. This is going to be easier to reproduce the issue! |
"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days." |
"This issue is being closed because it has been marked as |
Hello,
I would like to port the Reduce Prod operation from lite to micro. It should be quite straightforward even if I am not very familiar with tensor operation because other similar reduce operation are already ported.
There is already an issue about this porting but it seems to be abandon.
I already started the job but I am a little bit lost about the Quantized Reduce Prod function.
First I did an implementation inspired from QuantizedMeanOrSum and ReduceSumImpl function.
Then I realized there is already a function named QuantizedReduceProd in the reference reduce.h header: here
Should I used this existing function? Should I remove it and implement a new one based on the SumOrMean implementation?
Thanks,
Arthur.
The text was updated successfully, but these errors were encountered: