Skip to content

zhaocc1106/tensorrt-infer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tensorrt-infer

TensorRT模型加载与推理

环境

Cuda10.0 + Cudnn7.6 + TensorRT7.0.0.11

运行

先通过TensorRT中的trtexec工具转换onnx模型到trt:
trtexec --onnx=./model.onnx --explicitBatch --minShapes=inp0:1x28x28x3 --optShapes=inp0:64x28x28x3 --maxShapes=inp0:64x28x28x3 --shapes=inp0:64x28x28x3 --saveEngine=./model.trt
使用生成model.trt来推理:
./trt_test model.trt

About

TensorRT模型加载与推理

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published