forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
gpu_kernel_multiple_outputs
(pytorch#37969)
Summary: This PR introduces a variant of `gpu_kernel` for functions that return multiple values with `thrust::tuple`. With this I simplified `prelu_cuda_backward_share_weights_kernel`. ### Why using `thrust::tuple`? Because `std::tuple` does not support `operator=` on device code which makes the implementation complicated. Pull Request resolved: pytorch#37969 Reviewed By: paulshaoyuqiao Differential Revision: D22868670 Pulled By: ngimel fbshipit-source-id: eda0a29ac0347ad544b24bf60e3d809a7db1a929
- Loading branch information
1 parent
1848b43
commit eb9ae7c
Showing
4 changed files
with
175 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.