-
Notifications
You must be signed in to change notification settings - Fork 363
feat: support aten.copy dynamo converter #2550
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
Conversation
return impl.cast.to_copy( | ||
ctx, | ||
target, | ||
SourceIR.ATEN, | ||
name, | ||
src, | ||
src.dtype, | ||
force_layer=True, | ||
) |
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.
The force_layer=True
does seem useful for the purpose of the test case, but in a normal model we should prefer force_layer=False
. This should be a future feature, but to_copy
should have an intelligent force_layer
mechanism which can select whether to insert the layer based on whether the node is an input
node to the TRTEngine.
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.
Yes, I agree with you, but for now TensorRT doesn't support the same input and output.
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.
I added #2561 to track this proposed feature (in Torch-TRT)
cd735dc
to
05e02c0
Compare
return impl.cast.to_copy( | ||
ctx, | ||
target, | ||
SourceIR.ATEN, | ||
name, | ||
src, | ||
src.dtype, | ||
force_layer=True, | ||
) |
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.
I added #2561 to track this proposed feature (in Torch-TRT)
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
aten.copy
dynamo converter.Fixes #2435
Type of change
Checklist: