Skip to content

luolinll1212/pytorch.onnx.tensorrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytorch.onnx.tensorrt

pytorch->onnx->tensorrt

resnet50

run

python pytorch_to_onnx.py # config.fp16=False|True
python onnx_to_tensorrt.py

result

**********
Loading ONNX file from path ./output/resnet50.onnx
Begining ONNX file parsing
Completed creating Engine
[281]
[281]
TensorRT fp32 engine of Inference time:0.0023183822631835938
Pytorch fp32 model of Inference time:0.1390986442565918
MSE ERROR:1.1674825602797645e-12
**********
Loading ONNX file from path ./output/resnet50-fp16.onnx
Begining ONNX file parsing
Completed creating Engine
[281]
[281]
TensorRT fp16 engine of Inference time:0.0013973712921142578
Pytorch fp16 model of Inference time:0.006196022033691406
MSE ERROR:3.844499588012695e-05

About

resnet50. pytorch->onnx->tensorrt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages