-
Notifications
You must be signed in to change notification settings - Fork 34
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
Tensorrt backend #184
base: master
Are you sure you want to change the base?
Tensorrt backend #184
Conversation
menoh/tensorrt/Inference.cpp
Outdated
const int TIMING_ITERATIONS = 1; | ||
|
||
typedef std::pair<std::string, float> Record; | ||
std::vector<Record> mProfile; |
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.
Can't we use std::map<std::string, float>
(or unordered version) instead of std::vector<Record>
?
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.
Thank you comment. I think so too. std::unordered_map
seems suitable here.
include(CMakeDependentOption) | ||
option(ENABLE_MKLDNN "Use MKLDNN" ON) | ||
option(ENABLE_TENSORRT "Use TensorRT" OFF) | ||
cmake_dependent_option(ENABLE_TENSORRT_PROFILER "Make TneosrRT Profiler feature available" ON |
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.
TneosrRT -> TensorRT
Model caching
- build options - backend_config options
Stop to use useless stream
- replace tensorrt backend -> tensorrt - fix comment out (// -> #)
Modify profiler
update documents
add nonstd libraries' license (Boost Software License v1.0)
This PR adds TensorRT backend. It enables fast inference by using NVIDIA's TensorRT.