GithubHelp home page GithubHelp logo

codesteller86 / tensorrt-cpp-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cyrusbehr/tensorrt-cpp-api

0.0 0.0 0.0 63 KB

A tutorial project demonstrating how to use the TensorRT C++ API

License: MIT License

C++ 78.55% CMake 21.45%

tensorrt-cpp-api's Introduction

Stargazers Issues LinkedIn


logo

TensorRT C++ API Tutorial

How to use TensorRT C++ API for high performance GPU inference.
A Venice Computer Vision Presentation

Video Presentation . Presentation Slides · Venice Computer Vision

TensorRT C++ Tutorial

This project demonstrates how to use the TensorRT C++ API for high performance GPU inference. It covers how to do the following:

  • How to install TensorRT on Ubuntu 20.04
  • How to generate a TRT engine file optimized for your GPU
  • How to specify a simple optimization profile
  • How to read / write data from / into GPU memory
  • How to run synchronous inference
  • How to work with models with dynamic batch sizes

Getting Started

The following instructions assume you are using Ubuntu 20.04. You will need to supply your own onnx model for this sample code. Ensure to specify a dynamic batch size when exporting the onnx model.

Prerequisites

  • sudo apt install build-essential
  • sudo apt install python3-pip
  • pip3 install cmake
  • Download TensorRT from here: https://developer.nvidia.com/nvidia-tensorrt-8x-download
  • Extract, and then navigate to the CMakeLists.txt file and replace the TODO with the path to your TensorRT installation

Building the library

  • mkdir build && cd build
  • cmake ..
  • make -j$(nproc)

tensorrt-cpp-api's People

Contributors

cyrusbehr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.