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

[Operator] Add sort op #322

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

[Operator] Add sort op #322

wants to merge 4 commits into from

Conversation

zhzhcookie
Copy link
Collaborator

@zhzhcookie zhzhcookie commented Nov 25, 2024

PR Category

Operator

Type of Change

New Feature

Description

Add sort op.
This PR is modified according to the PR #222 submitted by MARD1NO (ZZK) from SiliconFlow.

Issue

Progress

  • Change is properly reviewed (1 reviewer required, 2 recommended).
  • Change is responded to an issue.
  • Change is fully covered by a UT.

Performance

image
image

Bowen12992
Bowen12992 previously approved these changes Dec 2, 2024
Copy link
Collaborator

@Bowen12992 Bowen12992 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 51 to 52
elif sort_elem_cnt > 512:
return torch.sort(inp, stable=False, dim=dim, descending=descending)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we leave TODO note notifying us on future planning?

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