OpenPPL / ppq

PPL Quantization Tool (PPQ) is a powerful offline neural network quantization tool.
Apache License 2.0
1.55k stars 235 forks source link

> 你好像需要这个? https://github.com/openppl-public/ppq/tree/master/ppq/samples/TensorRT #483

Closed lDarryll closed 1 year ago

lDarryll commented 1 year ago
          > 你好像需要这个? https://github.com/openppl-public/ppq/tree/master/ppq/samples/TensorRT

作者你好,这个生成engine的 lenet_int8.cpp,好像是通过下图的方式利用tensorrt c++ 的api一步一步搭建的engine,是否有利用c++ trt.OnnxParser的方式进行构建的例子

111

Originally posted by @lDarryll in https://github.com/openppl-public/ppq/issues/465#issuecomment-1578985713

ZhangZhiPku commented 1 year ago

并没有,但是你可以直接调ppq的工具函数,有个直接从python调tensorrt接口的,用过的都说好 https://github.com/openppl-public/ppq/blob/master/ppq/samples/TensorRT/Example_PTQ.py