Skip to content

Small code refine to avoid unnecessary object copy overhead. #22

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

Closed
wants to merge 1 commit into from

Conversation

yangjunpro
Copy link

Very small PR as a ramp up.

Copy link
Collaborator

@narendasan narendasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yangjunpro Thanks for the contribution. ConvertGraphToTRTEngine is exposed as an API for the core, so we will need to change the forward declaration in core/compiler.h as well and probably at the same time we should go ahead and change the public api as well in cpp/api/include/trtorch.h and its implementation in cpp/api/src/trtorch.cpp. (linked lines below)

https://github.com/NVIDIA/TRTorch/blob/3da4947c438e78c9cc7d179664b977ce9394d50e/core/compiler.h#L10
https://github.com/NVIDIA/TRTorch/blob/3da4947c438e78c9cc7d179664b977ce9394d50e/cpp/api/include/trtorch/trtorch.h#L242
https://github.com/NVIDIA/TRTorch/blob/3da4947c438e78c9cc7d179664b977ce9394d50e/cpp/api/src/trtorch.cpp#L13

Seems like a worthwhile change so if you can update the PR with those as well and make sure it passes the module tests we should be good to go!

@github-actions
Copy link

github-actions bot commented Jun 4, 2020

This PR has not seen activity for 30 days, Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot closed this Jun 10, 2020
frank-wei pushed a commit that referenced this pull request Jun 4, 2022
Summary:
Pull Request resolved: pytorch/fx2trt#22

Alternative to D34911848

Reviewed By: frank-wei

Differential Revision: D34930874

fbshipit-source-id: 0da1081cac09feb188d2624ba04c86d5f3ffef6c
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.

2 participants