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:
4
fastdeploy/backends/paddle/paddle_backend.h
Normal file → Executable file
4
fastdeploy/backends/paddle/paddle_backend.h
Normal file → Executable file
@@ -20,6 +20,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "fastdeploy/backends/backend.h"
|
||||
#include "paddle2onnx/converter.h"
|
||||
#include "paddle_inference_api.h" // NOLINT
|
||||
|
||||
namespace fastdeploy {
|
||||
@@ -61,7 +62,8 @@ class PaddleBackend : public BaseBackend {
|
||||
public:
|
||||
PaddleBackend() {}
|
||||
virtual ~PaddleBackend() = default;
|
||||
void BuildOption(const PaddleBackendOption& option);
|
||||
void BuildOption(const PaddleBackendOption& option,
|
||||
const std::string& model_file);
|
||||
|
||||
bool InitFromPaddle(
|
||||
const std::string& model_file, const std::string& params_file,
|
||||
|
Reference in New Issue
Block a user