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

[pytorch/cuda] Concat fast path w/ zero tensor #46805

Closed
wants to merge 1 commit into from

Conversation

xw285cornell
Copy link
Contributor

@xw285cornell xw285cornell commented Oct 24, 2020

Summary: 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

@facebook-github-bot
Copy link
Contributor

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

@dr-ci
Copy link

dr-ci bot commented Oct 24, 2020

💊 CI failures summary and remediations

As of commit 6656908 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


1 failure confirmed as flaky and can be ignored:

  • pytorch_windows_vs2019_py36_cuda10.1_build

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 12 times.

@facebook-github-bot
Copy link
Contributor

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

Summary:
Pull Request resolved: pytorch#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
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@xw285cornell xw285cornell changed the title [DO NOT LAND] Concat fast path w/ zero tensor [pytorch/cuda] Concat fast path w/ zero tensor Oct 27, 2020
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in e3b55a8.

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in e3b55a8.

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