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

[Flow] Fix cloning of flow.tensor.transfer into dispatch #19838

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

IanWood1
Copy link
Contributor

@IanWood1 IanWood1 commented Jan 28, 2025

Fixes case where flow.tensor.transfer was getting cloned into dispatches with an attention op by not cloning any Flow ops. This happens because isAttentionMaskGenerator returns true for all ops that are used by attention ops (including flow ops).

@IanWood1 IanWood1 changed the title Only consider linalg ops for mask Only consider linalg ops for attention mask Jan 28, 2025
@IanWood1 IanWood1 changed the title Only consider linalg ops for attention mask [Flow] Fix cloning of flow.tensor.transfer into dispatch Feb 11, 2025
@IanWood1 IanWood1 force-pushed the attn_mask branch 2 times, most recently from 8020236 to 2b8dacc Compare February 11, 2025 20:37
@IanWood1 IanWood1 marked this pull request as ready for review February 11, 2025 20:38
@IanWood1 IanWood1 requested a review from Groverkss February 11, 2025 20:38
@IanWood1 IanWood1 mentioned this pull request Feb 11, 2025
4 tasks
@IanWood1 IanWood1 merged commit 99304ff into iree-org:main Feb 12, 2025
43 checks passed
hanhanW pushed a commit to hanhanW/iree that referenced this pull request Feb 13, 2025
…19838)

Fixes case where `flow.tensor.transfer` was getting cloned into
dispatches with an attention op by not cloning any `Flow` ops. This
happens because `isAttentionMaskGenerator` returns true for all ops that
are used by attention ops (including flow ops).

Signed-off-by: Ian Wood <[email protected]>
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