-
Notifications
You must be signed in to change notification settings - Fork 27.7k
sort should only return the sorted input #70921
Copy link
Copy link
Open
Labels
module: bc-breakingRelated to a BC-breaking changeRelated to a BC-breaking changemodule: python array apiIssues related to the Python Array APIIssues related to the Python Array APImodule: sorting and selectiontopic: bc breakingtopic categorytopic categorytriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Metadata
Metadata
Assignees
Labels
module: bc-breakingRelated to a BC-breaking changeRelated to a BC-breaking changemodule: python array apiIssues related to the Python Array APIIssues related to the Python Array APImodule: sorting and selectiontopic: bc breakingtopic categorytopic categorytriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
The array API specification stipulates that
torch.sortshould only return the sorted input. Currently, we return a named tuple where the.valuesfield corresponds to the specification of the array API.cc @ezyang @gchanan @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi