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

[transform] add reduction_input_fuse primitive #1036

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

wyzero
Copy link
Collaborator

@wyzero wyzero commented Feb 22, 2023

to #787

Copy link
Collaborator

@qiuxiafei qiuxiafei left a comment

Choose a reason for hiding this comment

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

LGTM with minor comments.

return mlir::emitDefiniteFailure(
this->getOperation(),
"could not find candidate extract_slice of target in the loop.");
auto sliceOp = cast<tensor::ExtractSliceOp>(*userIt);
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Just handle only one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you are right. It actually only supports single ExtractSliceOp a.t.m. I'll refine this part in the next PR (today) and check the number of ExtractSliceOp is just one.

@wyzero wyzero merged commit 3579b73 into alibaba:main Feb 23, 2023
@wyzero wyzero deleted the features/wenyi_fix branch February 23, 2023 07:07
@tanyokwok tanyokwok mentioned this pull request Mar 8, 2023
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