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

topk: add as a primitive #88

Merged
merged 2 commits into from
Mar 27, 2024
Merged

topk: add as a primitive #88

merged 2 commits into from
Mar 27, 2024

Conversation

nikitaved
Copy link
Contributor

@nikitaved nikitaved commented Mar 27, 2024

As per title. The underlying PyTorch implementation is not trivial, so it is best to model this op as a prim.

There are still some to be done follow-ups to make the op functional and useful. These are:

  • backward support
  • named tuple wrap so that indices and values are accessible in the jit. Currently, these are not supported and these could be accessed only with indices.

@nikitaved
Copy link
Contributor Author

OK, so the issues popped after the rebase...

Copy link
Contributor

@carmocca carmocca left a comment

Choose a reason for hiding this comment

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

Thank you!

thunder/tests/test_jit_general.py Show resolved Hide resolved
@t-vi t-vi merged commit b433f6d into main Mar 27, 2024
37 checks passed
@t-vi t-vi deleted the nikitaved/topk branch March 27, 2024 20:11
@t-vi
Copy link
Collaborator

t-vi commented Mar 27, 2024

Thank you @nikitaved @carmocca

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.

None yet

3 participants