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

[MLIR:LITE] Fix PackOp verify #41719

Merged
merged 3 commits into from
Aug 14, 2020

Conversation

WindQAQ
Copy link
Member

@WindQAQ WindQAQ commented Jul 25, 2020

Axis can be in [-rank - 1, rank + 1), but the original codes only verify [-rank, rank + 1).

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/kernels/pack.cc#L41-L47

The test case seems to be wrong. For rank 2 tensors, axis=-3 is equal to axis=0, axis=-2 is equal to axis=1.

https://colab.research.google.com/drive/1WRPjkdv70njl1uHlGAh_J7xp0v1QH11j?usp=sharing

@google-ml-butler google-ml-butler bot added the size:S CL Change Size: Small label Jul 25, 2020
@WindQAQ WindQAQ changed the title Fix pack verify [MLIR:LITE] Fix PackOp verify Jul 25, 2020
@gbaned gbaned self-assigned this Jul 25, 2020
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation Jul 25, 2020
@gbaned gbaned added the awaiting review Pull request awaiting review label Jul 29, 2020
@gbaned gbaned requested a review from jpienaar August 6, 2020 17:19
PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer Aug 13, 2020
@google-ml-butler google-ml-butler bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Aug 13, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Aug 13, 2020
@gbaned gbaned removed the awaiting review Pull request awaiting review label Aug 14, 2020
@tensorflow-copybara tensorflow-copybara merged commit 736090f into tensorflow:master Aug 14, 2020
PR Queue automation moved this from Approved by Reviewer to Merged Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes 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