-
Notifications
You must be signed in to change notification settings - Fork 712
[Pyspeech] avoid .item call in feature_processing #4015
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/audio/4015
Note: Links to docs will display an error until the docs builds have been completed. ❌ 8 New Failures, 2 Unrelated FailuresAs of commit 02d6815 with merge base c819dbe ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D79451615 |
Summary: tensor.item() causes CPU_GPU sync and degradates performance. Avoid using .item() and rewrite mask_along_axis_iid to treat mask_value as a tensor comparison https://fburl.com/mlhub/37l2ufrp {F1980844270} It increases SM U by 1% {F1980890373} {F1980890377} Differential Revision: D79451615
83a6780
to
e2e7642
Compare
Summary: Pull Request resolved: pytorch#4015 tensor.item() causes CPU_GPU sync and degradates performance. Avoid using .item() and rewrite mask_along_axis_iid to treat mask_value as a tensor comparison https://fburl.com/mlhub/37l2ufrp {F1980844270} It increases SM U by 1% {F1980890373} {F1980890377} Differential Revision: D79451615
This pull request was exported from Phabricator. Differential Revision: D79451615 |
e2e7642
to
2ba91d0
Compare
Summary: Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
2ba91d0
to
6c3e0fd
Compare
This pull request was exported from Phabricator. Differential Revision: D79451615 |
Summary: Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
6c3e0fd
to
abef5cc
Compare
This pull request was exported from Phabricator. Differential Revision: D79451615 |
Summary: Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
abef5cc
to
563efe3
Compare
This pull request was exported from Phabricator. Differential Revision: D79451615 |
Summary: Pull Request resolved: pytorch#4015 Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
563efe3
to
e22d0f5
Compare
Summary: Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
e22d0f5
to
afa7d75
Compare
This pull request was exported from Phabricator. Differential Revision: D79451615 |
Summary: Pull Request resolved: pytorch#4015 Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
acb94a7
to
3196abd
Compare
Summary: Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
This pull request was exported from Phabricator. Differential Revision: D79451615 |
Summary: Pull Request resolved: pytorch#4015 Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
3196abd
to
7971f16
Compare
Summary: Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
7971f16
to
862bc0c
Compare
This pull request was exported from Phabricator. Differential Revision: D79451615 |
Summary: Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
862bc0c
to
717c8bd
Compare
This pull request was exported from Phabricator. Differential Revision: D79451615 |
Summary: Pull Request resolved: pytorch#4015 Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
717c8bd
to
2541ba5
Compare
Summary: Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
2541ba5
to
9882707
Compare
This pull request was exported from Phabricator. Differential Revision: D79451615 |
Summary: Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
9882707
to
7cb48af
Compare
This pull request was exported from Phabricator. Differential Revision: D79451615 |
Summary: Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
7cb48af
to
3b4661e
Compare
Summary: Pull Request resolved: pytorch#4015 Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
Summary: Add support for mask_value to be tensor: for example, if we want to fill with mean values of featured. when mask_value is tensor masked_fill creates additional D2D copy, rewriting with torch.where to avoid it Differential Revision: D79451615
3b4661e
to
78f5754
Compare
This pull request was exported from Phabricator. Differential Revision: D79451615 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D79451615 |
78f5754
to
02d6815
Compare
Summary:
tensor.item() causes CPU_GPU sync and degradates performance.
Avoid using .item() and rewrite mask_along_axis_iid to treat mask_value as a tensor
comparison https://fburl.com/mlhub/37l2ufrp
{F1980844270}
It increases SM U by 1%
{F1980890373}
{F1980890377}
Differential Revision: D79451615