Skip to content
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

Open
wants to merge 137 commits into
base: master
Choose a base branch
from
Open

Tensorrt backend #184

wants to merge 137 commits into from

Conversation

okdshin
Copy link
Contributor

@okdshin okdshin commented Dec 4, 2018

This PR adds TensorRT backend. It enables fast inference by using NVIDIA's TensorRT.

  • Modify CMakeLists.txt for merging
  • Add a license
  • Testing

const int TIMING_ITERATIONS = 1;

typedef std::pair<std::string, float> Record;
std::vector<Record> mProfile;
Copy link
Member

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> ?

Copy link
Contributor Author

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
Copy link
Member

Choose a reason for hiding this comment

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

TneosrRT -> TensorRT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants