Skip to content

Top K算子 #23

Description

@PanZezhong1725

topK(Tensor indices, Tensor probs, Tensor logits, int64 k)

根据logits最后一维选出最大的k个值(若k为负数则选最小的k个值),值放在probs里,序号放在indices里。

  • CPU
  • CUDA
  • BANG

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions