-
Notifications
You must be signed in to change notification settings - Fork 355
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
add aten.sum.default #2807
add aten.sum.default #2807
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2807
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 79943ca with merge base 564c276 (): NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D55630993 |
Summary: The operator `aten.sum.dim_IntList` could take an empty list as the parameter for `dims`. We modify `vulkan_graph_builder.py` to accommodate the empty list. Moreover, the op `aten.sum.default` is implemented as a [decomposition](https://www.internalfb.com/code/fbsource/[96e496f9db8f92967b4394bd4f60e39ab916740b]/xplat/caffe2/torch/_decomp/decompositions.py?lines=4676) into `aten.sum.dim_IntList` with empty `dims`. So we will support `aten.sum.default` with the changes. Context: `torch.sum(x, ())` and `torch.sum(x)` are two ways to compute the sum of all elements in tensor `x`. Differential Revision: D55630993
c909050
to
b551ec4
Compare
This pull request was exported from Phabricator. Differential Revision: D55630993 |
Summary: The operator `aten.sum.dim_IntList` could take an empty list as the parameter for `dims`. We modify `vulkan_graph_builder.py` to accommodate the empty list. Moreover, the op `aten.sum.default` is implemented as a [decomposition](https://www.internalfb.com/code/fbsource/[96e496f9db8f92967b4394bd4f60e39ab916740b]/xplat/caffe2/torch/_decomp/decompositions.py?lines=4676) into `aten.sum.dim_IntList` with empty `dims`. So we will support `aten.sum.default` with the changes. Context: `torch.sum(x, ())` and `torch.sum(x)` are two ways to compute the sum of all elements in tensor `x`. Reviewed By: SS-JIA, jorgep31415 Differential Revision: D55630993
b551ec4
to
79943ca
Compare
This pull request was exported from Phabricator. Differential Revision: D55630993 |
This pull request has been merged in b145701. |
Summary:
The operator
aten.sum.dim_IntList
could take an empty list as the parameter fordims
. We modifyvulkan_graph_builder.py
to accommodate the empty list.Moreover, the op
aten.sum.default
is implemented as a decomposition intoaten.sum.dim_IntList
with emptydims
. So we will supportaten.sum.default
with the changes.Context:
torch.sum(x, ())
andtorch.sum(x)
are two ways to compute the sum of all elements in tensorx
.Differential Revision: D55630993