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

Add group_index_select_dim0 #1421

Closed
wants to merge 1 commit into from
Closed

Conversation

sryap
Copy link
Contributor

@sryap sryap commented Oct 25, 2022

Summary:
group_index_select_dim0 does index_select_dim0 for each group of
inputs in a single kernel. The operator takes a list of inputs and a
list of indices and returns a list of outputs.

There are some limitations to group_index_select_dim0:

  • All inputs must have the same shape.
  • All indices must have the same shape.
  • Because we use variadic template for the autograd function, it
    supports up to 55 groups.

Differential Revision: D40683435

Summary:
`group_index_select_dim0` does `index_select_dim0` for each group of
inputs in a single kernel.  The operator takes a list of inputs and a
list of indices and returns a list of outputs.

There are some limitations to group_index_select_dim0:
- All inputs must have the same shape.
- All indices must have the same shape.
- Because we use variadic template for the autograd function, it
supports up to 55 groups.

Differential Revision: D40683435

fbshipit-source-id: 5c4e6adced3fad43206f91b1a9131774d6ed71f5
@netlify
Copy link

netlify bot commented Oct 25, 2022

Deploy Preview for pytorch-fbgemm-docs canceled.

Name Link
🔨 Latest commit b10c170
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/635831b470376b00082a2668

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D40683435

sryap added a commit to sryap/FBGEMM that referenced this pull request Nov 3, 2022
Summary:
Pull Request resolved: pytorch#1421

`group_index_select_dim0` does `index_select_dim0` for each group of
inputs in a single kernel.  The operator takes a list of inputs and a
list of indices and returns a list of outputs.

There are some limitations to group_index_select_dim0:
- All inputs must have the same shape.
- All indices must have the same shape.
- Because we use variadic template for the autograd function, it
supports up to 55 groups.

Differential Revision: D40683435

fbshipit-source-id: bcc52c0b1ae4f9270901bbd45d85d45c89051eb6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants