KEMBAR78
Use TensorList in group_index_select_dim0 by spcyppt · Pull Request #1884 · pytorch/FBGEMM · GitHub
Skip to content

Conversation

@spcyppt
Copy link
Contributor

@spcyppt spcyppt commented Jul 20, 2023

Summary:
Replace variadic template in group_index_select_dim0 by packing all
tensors into TensorList and passing the TensorList to autograd
function. Return output needs to be tensors of the same size as
input specified in the forward functions and can be returned as
type of variable_list. This improves performance and lifts
limitations of using variadic template that needs to be instantiated
for each group size and limits max group size of 55.

Reviewed By: sryap

Differential Revision: D47488358

@netlify
Copy link

netlify bot commented Jul 20, 2023

Deploy Preview for pytorch-fbgemm-docs canceled.

Name Link
🔨 Latest commit b2f81ff
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/64b98a8f7118cf0008a7b832

@facebook-github-bot
Copy link
Contributor

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

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Jul 20, 2023
Summary:
Pull Request resolved: pytorch#1884

Replace variadic template in `group_index_select_dim0` by packing all
tensors into `TensorList` and passing the `TensorList` to autograd
function. Return output needs to be tensors of the same size as
input specified in the forward functions and can be returned as
type of variable_list. This improves performance and lifts
limitations of using variadic template that needs to be instantiated
for each group size and limits max group size of 55.

Reviewed By: sryap

Differential Revision: D47488358

fbshipit-source-id: 7747896396e9acf3021bdabb9a054b6feb6c9038
@spcyppt spcyppt force-pushed the export-D47488358 branch from 3ec7144 to ad5c45c Compare July 20, 2023 06:05
@facebook-github-bot
Copy link
Contributor

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

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Jul 20, 2023
Summary:
Pull Request resolved: pytorch#1884

Replace variadic template in `group_index_select_dim0` by packing all
tensors into `TensorList` and passing the `TensorList` to autograd
function. Return output needs to be tensors of the same size as
input specified in the forward functions and can be returned as
type of variable_list. This improves performance and lifts
limitations of using variadic template that needs to be instantiated
for each group size and limits max group size of 55.

Reviewed By: sryap

Differential Revision: D47488358

fbshipit-source-id: abf753560e462f19c7eebcb4ae7d7b47dcf700a2
@spcyppt spcyppt force-pushed the export-D47488358 branch from ad5c45c to 21686e8 Compare July 20, 2023 06:11
@facebook-github-bot
Copy link
Contributor

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

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Jul 20, 2023
Summary:
Pull Request resolved: pytorch#1884

Replace variadic template in `group_index_select_dim0` by packing all
tensors into `TensorList` and passing the `TensorList` to autograd
function. Return output needs to be tensors of the same size as
input specified in the forward functions and can be returned as
type of variable_list. This improves performance and lifts
limitations of using variadic template that needs to be instantiated
for each group size and limits max group size of 55.

Reviewed By: sryap

Differential Revision: D47488358

fbshipit-source-id: 898f1d1a4ceb7183fc0ea00d78aa2983b10d0392
@spcyppt spcyppt force-pushed the export-D47488358 branch from 21686e8 to 5996c3e Compare July 20, 2023 06:20
@facebook-github-bot
Copy link
Contributor

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

spcyppt added a commit to spcyppt/FBGEMM that referenced this pull request Jul 20, 2023
Summary:
Pull Request resolved: pytorch#1884

Replace variadic template in `group_index_select_dim0` by packing all
tensors into `TensorList` and passing the `TensorList` to autograd
function. Return output needs to be tensors of the same size as
input specified in the forward functions and can be returned as
type of variable_list. This improves performance and lifts
limitations of using variadic template that needs to be instantiated
for each group size and limits max group size of 55.

Reviewed By: sryap

Differential Revision: D47488358

fbshipit-source-id: 73e0b7e86c1981d9e73e87fc012c2f3b6c35efa8
@spcyppt spcyppt force-pushed the export-D47488358 branch from 5996c3e to acbc878 Compare July 20, 2023 19:20
@facebook-github-bot
Copy link
Contributor

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

Summary:
Pull Request resolved: pytorch#1884

Replace variadic template in `group_index_select_dim0` by packing all
tensors into `TensorList` and passing the `TensorList` to autograd
function. Return output needs to be tensors of the same size as
input specified in the forward functions and can be returned as
type of variable_list. This improves performance and lifts
limitations of using variadic template that needs to be instantiated
for each group size and limits max group size of 55.

Reviewed By: sryap

Differential Revision: D47488358

fbshipit-source-id: 574b6d4418069fb9e6b17d28484cf8796185a63b
@spcyppt spcyppt force-pushed the export-D47488358 branch from acbc878 to b2f81ff Compare July 20, 2023 19:27
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 8372bc7.

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.

2 participants