wang-xinyu/tensorrtx

Implementation of popular deep learning networks with TensorRT network definition API

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 34 minutes ago
Added to GitGenius on September 8th, 2026
Created on November 25th, 2019
Open Issues & Pull Requests: 1 (+0)
GitHub issues: Enabled
Number of forks: 1,855
Total Stargazers: 7,833 (+0)
Total Subscribers: 103 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

TensorRTx is a C++ library that implements popular deep learning networks using TensorRT's network definition API.

The project addresses the limitations of using parsers like ONNX or Caffe by enabling direct network construction through TensorRT APIs. This approach provides flexibility to modify networks by adding, deleting, or replacing layers, integrating preprocessing and postprocessing directly into the engine, and debugging by inspecting intermediate layer outputs. The workflow involves exporting trained model weights from frameworks like PyTorch, TensorFlow, or MXNet into a plain text .wts format, then loading those weights into TensorRT to define and build an optimized inference engine.

TensorRTx suits developers who need production-grade inference optimization for computer vision models and want fine-grained control over network architecture. It is particularly valuable for those deploying YOLO variants, ResNet, MobileNet, and transformer-based models where understanding network structure and customizing inference pipelines matter. The project emphasizes educational value, allowing developers to learn network internals rather than treating models as black boxes. This makes it appropriate for teams building custom inference solutions where the ability to modify and debug networks directly outweighs the convenience of automatic parsers.

The project maintains active development across multiple model architectures, with recent additions spanning YOLO variants at different versions, vision transformers, optical character recognition models, and language models. Contributors regularly refactor existing implementations to support multiple TensorRT SDK versions, ensuring compatibility across different deployment environments. The codebase has expanded to include experimental implementations using Tripy, NVIDIA's Python programming model for TensorRT, indicating exploration of alternative development approaches alongside the core C++ implementations.