-
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
feat: Save target platform as part of TRTEngine Metadata #3106
Conversation
4b50ad3
to
f2e902b
Compare
core/runtime/Platform.cpp
Outdated
#elif defined(__amd64__) || defined(__x86_64__) | ||
return Platform(Platform::PlatformEnum::kLINUX_X86_64); | ||
#else | ||
return Platform(Platform::PlatformEnum::kLINUX_X86_64); |
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 should be unknown
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.
LGTM with pending comments.
@@ -196,7 +209,6 @@ TRTEngine::TRTEngine( | |||
} | |||
|
|||
TRTEngine::~TRTEngine() { | |||
cudagraph.reset(); |
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.
Why is this not needed ?
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 object destructor calls it and its potentially unsafe to do it ourselves
py/torch_tensorrt/_enums.py
Outdated
|
||
elif platform.system().lower().startswith("win32"): | ||
# Windows... | ||
if platform.machine().startswith("x86_64"): |
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.
.lower amd64
5ae6942
to
80de386
Compare
Signed-off-by: Naren Dasan <naren@narendasan.com> Signed-off-by: Naren Dasan <narens@nvidia.com>
80de386
to
f9ff5b5
Compare
Description
Saves the target platform as part of the TRTEngine Data.
Fixes #3103
Fixes #3101
Type of change
Please delete options that are not relevant and/or add your own.
Checklist: