8000 [DispatchCreation] Relax unit dim expansion cycle check by Groverkss · Pull Request #20781 · iree-org/iree · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[DispatchCreation] Relax unit dim expansion cycle check #20781

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Groverkss
Copy link
Contributor

The cycle check was also restricting non unit dim expansions. This patch allows one iteration of the cycle to happen, which will lead to only a unit dim expand and changes the check to restrict this unit dim expand.


// Check for multiple uses. The producer has at least 1 use: the
// expand_shape.
if (numUnitDimExpands >= outputShape.size() - 1 && isMultiUse) {
Copy link
Contributor

Choose a reason for hiding this comment

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

isMultiUse should always be true here

}
// Check if the output shape of reassociations is only doing unit dim
// expands.
int64_t numUnitDimExpands =
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also check that all of the re-associations are only unit dim expands? i.e. convert the for loop into an llvm::all_of

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
0