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

[MHLO] Eliminate explicit dynamic output shape generating in converting AtenSliceTensorOp #1245

Merged
merged 2 commits into from
Aug 19, 2022

Conversation

Vremold
Copy link
Collaborator

@Vremold Vremold commented Aug 18, 2022

This PR passed an additional output type arg when converting AtenSliceTensorOp to MHLO dialect. Since mhlo.RealDynamicSliceOp's canonicalization pattern requires static output shape, the benefits of passing output type is to eliminate explicit output shape generating, which introduces dynamic shape even in static patterns, and thus helpful to canonicalize mhlo.RealDynamicSliceOp.

@Vremold Vremold requested a review from tanyokwok August 18, 2022 07:50
Copy link
Collaborator

@tanyokwok tanyokwok left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants