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

[tflite] enable INT8 for Java binding #36397

Conversation

freedomtan
Copy link
Contributor

some models created by full-integer post training quantization,
e.g., the mobilenet v3 edgetpu one [1], have INT8 input and
output tensors.

See also tensorflow/models#7887

[1] https://storage.cloud.google.com/mobilenet_edgetpu/checkpoints/mobilenet_edgetpu_224_1.0.tgz

some models created by full-integer post training quantization,
e.g., the mobilenet v3 edgetpu one [1], have INT8 input and
output tensors.

[1] https://storage.cloud.google.com/mobilenet_edgetpu/checkpoints/mobilenet_edgetpu_224_1.0.tgz
@tensorflow-bot tensorflow-bot bot added the size:S CL Change Size: Small label Feb 1, 2020
@gbaned gbaned self-assigned this Feb 3, 2020
@gbaned gbaned added the comp:lite TF Lite related issues label Feb 3, 2020
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation Feb 3, 2020
@gbaned gbaned requested a review from talumbau February 3, 2020 05:06
@gbaned gbaned added the awaiting review Pull request awaiting review label Feb 10, 2020
PR Queue automation moved this from Assigned Reviewer to Reviewer Requested Changes Feb 10, 2020
if (oType != dtype) {
// INT8 and UINT8 have the same string name, "byte"
if (oType.toStringName().equals(dtype.toStringName())) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can you add a test case in DataTypeTest.java to verify this equality? You can basically just copy this exact logic and make sure it holds for int8/uint8.

PR Queue automation moved this from Reviewer Requested Changes to Approved by Reviewer Feb 12, 2020
@tensorflow-bot tensorflow-bot bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Feb 12, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Feb 12, 2020
@gbaned gbaned added ready to pull PR ready for merge process and removed awaiting review Pull request awaiting review ready to pull PR ready for merge process labels Feb 13, 2020
tensorflow-copybara pushed a commit that referenced this pull request Feb 13, 2020
…_binding

PiperOrigin-RevId: 294933944
Change-Id: I2e852573e689b081de50f558e66eb914727a5524
@tensorflow-copybara tensorflow-copybara merged commit 81f764e into tensorflow:master Feb 13, 2020
PR Queue automation moved this from Approved by Reviewer to Merged Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes comp:lite TF Lite related issues ready to pull PR ready for merge process size:S CL Change Size: Small
Projects
PR Queue
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

6 participants