Skip to content

Migrate sort from the TH to Aten (CPU) #24770

Closed

Description

@VitalyFedyunin

Porting TH operators is essential for code simplicity and performance reasons.

Porting guides and Q&A are available in umbrella issue: #24507

Feel free to add @VitalyFedyunin as a reviewer to get a prioritized review.

Activity

  1. added
    better-engineering
    module: porting
    triaged
    on Aug 16, 2019
  2. fmassa commented on Aug 16, 2019

    @fmassa
    Member

    For information, we already have topk and kth_value ported to ATen in https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/Sorting.cpp

    Also, I wonder if this task shouldn't be tackled via a generalization of TensorIterator that takes a vector and returns a vector, instead of taking a number and returning a number?

  3. nikitaved commented on May 18, 2020

    @nikitaved
    Collaborator

    It looks like topk and kth_value indeed do not utilize TensorIterator. I am thinking about fixing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    better-engineeringmodule: portingmodule: sorting and selectiontriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions