mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
[Other] Remove useless macros (#1095)
* Remove useless macros * triger ci * fix check error * rename INTEGRATE_PADDLE2ONNX to ENABLE_PADDLE2ONNX
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include "NvInferRuntime.h"
|
||||
#include "fastdeploy/function/cuda_cast.h"
|
||||
#include "fastdeploy/utils/utils.h"
|
||||
#ifdef ENABLE_PADDLE_FRONTEND
|
||||
#ifdef ENABLE_PADDLE2ONNX
|
||||
#include "paddle2onnx/converter.h"
|
||||
#endif
|
||||
|
||||
@@ -123,7 +123,7 @@ bool TrtBackend::InitFromPaddle(const std::string& model_file,
|
||||
}
|
||||
option_ = option;
|
||||
|
||||
#ifdef ENABLE_PADDLE_FRONTEND
|
||||
#ifdef ENABLE_PADDLE2ONNX
|
||||
std::vector<paddle2onnx::CustomOp> ops;
|
||||
ops.resize(1);
|
||||
strcpy(ops[0].op_name, "pool2d");
|
||||
|
Reference in New Issue
Block a user