Skip to content

Conversation

cakedev0
Copy link

@cakedev0 cakedev0 commented Oct 19, 2025

Everything is in the title.

Fixes #354

@Copilot Copilot AI review requested due to automatic review settings October 19, 2025 17:49
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR wraps torch.argsort to set stable=True by default, aligning it with the array API specification and matching the behavior of the existing sort wrapper.

  • Adds a new argsort function wrapper that defaults stable parameter to True

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

cakedev0 and others added 2 commits October 19, 2025 19:52
Remove the empty line with trailing whitespace inside the function body. This line serves no purpose and should be deleted.

Co-authored-by: Copilot <[email protected]>
from typing import Literal

import torch
import torch # noqa: F401
Copy link
Author

Choose a reason for hiding this comment

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

Unrelated to this PR, but CI was failing without this.

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.

torch.argsort is not stable by default

1 participant