-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix REDUCE_PROD #32
Comments
Comparing https://www.tensorflow.org/versions/r2.3/api_docs/cc and https://www.tensorflow.org/versions/r2.4/api_docs/cc we see that TF 2.4 introduced tensorflow::ops::QuantizeAndDequantizeV4. Comparing https://www.tensorflow.org/versions/r2.5/api_docs/cc and https://www.tensorflow.org/versions/r2.6/api_docs/cc we see that TF 2.6 introduced tensorflow::ops::BatchMatMulV3. On the other hand:
whereas in v2.5.0 we have:
and Furthermore
and
includes num_features whereas
does not. Hence TF > 2.4. In conclusion, two contradictory signals, but given that REDUCE_PROD switched to version |
I contacted Coral about this and they responded as follows:
So it seems that we will continue using the patch to TF 2.10.1. @mikesperber |
Just creating this issue to document ongoing investigation.
Since TF 2.6, with TF PR #49735, TFLite generates REDUCE_PROD version 2 in certain cases. The closed-source
edgetpu-compiler
(which we suspect is based on TF <2.6) apparently doesn't support REDUCE_PROD version 2. With the following diff on TF 2.10.1, the product test does seem to work:but just applying that without understanding the implications seems a very bad idea.
The text was updated successfully, but these errors were encountered: