Skip to content

Conversation

sogartar
Copy link
Collaborator

This conversion supports static k, largest and sorted. Also the topk must be unsorted.

This conversion supports static k, largest and sorted.
Also the topk must be unsorted.
Copy link
Collaborator

@vivekkhandelwal1 vivekkhandelwal1 left a comment

Choose a reason for hiding this comment

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

@sogartar, can you please add some e2e tests to verify the correctness of this lowering?

@michizhou
Copy link

@sogartar I am part of a group which has adapted this conversion pattern as part of our lowering process for a MoE model down to the Linalg MLIR dialect. To fully integrate this pattern into our codebase, we need to pull it from the production Torch-MLIR. If you can add E2E tests as suggested by the reviewer so it can be merged, we would greatly appreciate it. Thanks!

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.

3 participants