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] Add folder for mhlo get_dimension_size #42509

Merged

Conversation

bondhugula
Copy link
Contributor

@bondhugula bondhugula commented Aug 20, 2020

Add folder for mhlo GetDimensionSizeOp (mhlo.get_dimension_size).
get_dimension_size folds to a constant when the corresponding tensor
dimension size is statically known / constant.

@google-ml-butler google-ml-butler bot added the size:S CL Change Size: Small label Aug 20, 2020
@bondhugula bondhugula changed the title [MLIR-LAIR] Add folder for xla_hlo get_dimension_size [MLIR-LAIR] Add folder for mhlo get_dimension_size Aug 20, 2020
@bondhugula bondhugula changed the title [MLIR-LAIR] Add folder for mhlo get_dimension_size [MLIR] Add folder for xla_hlo get_dimension_size Aug 20, 2020
@bondhugula bondhugula changed the title [MLIR] Add folder for xla_hlo get_dimension_size [MLIR] Add folder for mhlo get_dimension_size Aug 20, 2020
@bondhugula
Copy link
Contributor Author

@gbaned gbaned self-assigned this Aug 20, 2020
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation Aug 20, 2020
joker-eph
joker-eph previously approved these changes Aug 21, 2020
PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer Aug 21, 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 21, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Aug 21, 2020
@gbaned gbaned added ready to pull PR ready for merge process and removed ready to pull PR ready for merge process labels Aug 21, 2020
PR Queue automation moved this from Approved by Reviewer to Reviewer Requested Changes Aug 21, 2020
@google-ml-butler google-ml-butler bot removed the ready to pull PR ready for merge process label Aug 21, 2020
@bondhugula
Copy link
Contributor Author

Fixed dialect name in test cases: xla_hlo -> mhlo

joker-eph
joker-eph previously approved these changes Aug 21, 2020
PR Queue automation moved this from Reviewer Requested Changes to Approved by Reviewer Aug 21, 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 21, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Aug 21, 2020
@bondhugula
Copy link
Contributor Author

@sherhut @joker-eph The internal builds here may fail here since a lot of ops would get folded away (since shapes are typically constant, and more operands would become constant with this folding).

@rthadur
Copy link
Contributor

rthadur commented Aug 21, 2020

@bondhugula can you please fix ubuntu sanity build failures ?

@rthadur rthadur removed the ready to pull PR ready for merge process label Aug 21, 2020
@joker-eph joker-eph added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Aug 23, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Aug 23, 2020
@joker-eph
Copy link
Contributor

Seems like in conflicts, can you rebase?

@bondhugula
Copy link
Contributor Author

Seems like in conflicts, can you rebase?

Done.

PR Queue automation moved this from Approved by Reviewer to Reviewer Requested Changes Aug 23, 2020
@google-ml-butler google-ml-butler bot removed the ready to pull PR ready for merge process label Aug 23, 2020
@joker-eph joker-eph added the ready to pull PR ready for merge process label Aug 23, 2020
Add folder for mhlo GetDimensionSizeOp. get_dimension_size folds to a
constant when the corresponding tensor dimension size is statically
known / constant.
@bondhugula
Copy link
Contributor Author

Rebased and fixed conflict.

@google-ml-butler google-ml-butler bot removed the ready to pull PR ready for merge process label Aug 24, 2020
PR Queue automation moved this from Reviewer Requested Changes to Approved by Reviewer Aug 24, 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 24, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Aug 24, 2020
copybara-service bot pushed a commit to tensorflow/mlir-hlo that referenced this pull request Aug 24, 2020
Imported from GitHub PR tensorflow/tensorflow#42509

Add folder for mhlo GetDimensionSizeOp (`mhlo.get_dimension_size`).
`get_dimension_size` folds to a constant when the corresponding tensor
dimension size is statically known / constant.
Copybara import of the project:

--
5994915525ec2e932125aa1f133ce2260ba100af by Uday Bondhugula <uday@polymagelabs.com>:

[MLIR] Add folder for mhlo get_dimension_size

Add folder for mhlo GetDimensionSizeOp. get_dimension_size folds to a
constant when the corresponding tensor dimension size is statically
known / constant.

COPYBARA_INTEGRATE_REVIEW=tensorflow/tensorflow#42509 from polymage-labs:get_dimension_size_fold 5994915525ec2e932125aa1f133ce2260ba100af
PiperOrigin-RevId: 328222517
@tensorflow-copybara tensorflow-copybara merged commit f068347 into tensorflow:master Aug 24, 2020
PR Queue automation moved this from Approved by Reviewer to Merged Aug 24, 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

7 participants