mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
Add paddle quantize model support for ORT, TRT and MKLDNN deploy backend (#257)
* add quantize model support for trt and paddle * fix bugs * fix * update paddle2onnx version * update version * add quantize test Co-authored-by: Jason <jiangjiajun@baidu.com>
This commit is contained in:
3
python/fastdeploy/runtime.py
Normal file → Executable file
3
python/fastdeploy/runtime.py
Normal file → Executable file
@@ -117,6 +117,9 @@ class RuntimeOption:
|
||||
"""
|
||||
return self._option.set_cpu_thread_num(thread_num)
|
||||
|
||||
def set_ort_graph_opt_level(self, level=-1):
|
||||
return self._option.set_ort_graph_opt_level(level)
|
||||
|
||||
def use_paddle_backend(self):
|
||||
"""Use Paddle Inference backend, support inference Paddle model on CPU/Nvidia GPU.
|
||||
"""
|
||||
|
Reference in New Issue
Block a user