-
Notifications
You must be signed in to change notification settings - Fork 364
feat: support torch.ops.aten.sum.(default and dim_IntList) dynamo converter #2278
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
feat: support torch.ops.aten.sum.(default and dim_IntList) dynamo converter #2278
Conversation
@@ -33,3 +33,29 @@ def amax( | |||
) | |||
set_layer_name(layer, target, name, source_ir) | |||
return layer.get_output(0) | |||
|
|||
|
|||
def sum_dim_IntList( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems over specialized, what are the other variants of sum? Can we combine the implementations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@narendasan Thanks for your suggestion! I updated to support both aten.sum.default
and aten.sum.dim_IntList
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@narendasan lmk if more changes are needed! thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Description
Support
torch.ops.aten.sum.dim_IntList
dynamo converterFixes #2244
Type of change
Checklist: