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

Add topk operator #66

Merged
merged 11 commits into from
Aug 21, 2024
Merged

Add topk operator #66

merged 11 commits into from
Aug 21, 2024

Conversation

mgehre-amd
Copy link
Collaborator

Adds a topk operator

Keep consistency with the onnx.topk
@cferry-AMD
Copy link
Contributor

I'm wondering whether we should also infer the type of indices in inferReturnTypeComponents?

Check if the types are compatible insteal of equal. Sometimes the result
type can be made static and type inference cannot deduce it e.g. when
the k is dynamic
@josel-amd josel-amd requested a review from cferry-AMD August 21, 2024 07:46
@mgehre-amd mgehre-amd removed the request for review from josel-amd August 21, 2024 12:56
@mgehre-amd
Copy link
Collaborator Author

LGTM

Copy link
Contributor

@cferry-AMD cferry-AMD left a comment

Choose a reason for hiding this comment

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

Thanks!

@josel-amd josel-amd merged commit 9722914 into feature/fused-ops Aug 21, 2024
2 checks passed
@josel-amd josel-amd deleted the matthias.topk branch August 21, 2024 14:08
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