Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pytorch/ops] Concat fast path w/ zero tensor (#46805)
Summary: Pull Request resolved: #46805 The current implementation goes with slow path if there is zero tensor in the list. This is inefficient. Use the fast path for torch.cat even if there are empty tensors. This wastes one thread block for the empty tensor, but still much better than the slow path. Test Plan: CI + sandcastle Differential Revision: D24524441 fbshipit-source-id: 522dea42628207bd77a8dfba39476b1dc3c1de45
- Loading branch information
1 parent
af27da9
commit 6656908
Showing
1 changed file
with
17 additions
and
12 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