dy-gdut / pytorch-tensorrt

pytorch model tensorrt inference code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pytorch model -> onnx -> tensorrt engine

Convert a Pytorch model to TensorRT engin (optional: int8 engin)

Required:

Python packages: in requirements.txt

External:

  • CUDA == 9.0
  • CUDNN == 7.3.1
  • TensorRT == 4.0.2.6

Steps

  • python model2trt.py
  • python trt_inference.py

thanks to

  1. https://github.com/modricwang/Pytorch-Model-to-TensorRT

About

pytorch model tensorrt inference code

License:GNU General Public License v3.0


Languages

Language:Python 100.0%