mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-08 01:50:27 +08:00

* Add notes for tensors * Optimize some apis * move some warnings * Support build with Paddle2ONNX * Add protobuf support * Fix compile on mac * add clearn package script * Add paddle2onnx code * remove submodule * Add onnx ocde * remove softlink * add onnx code * fix error * Add cmake file * fix patchelf * update paddle2onnx * Delete .gitmodules --------- Co-authored-by: PaddleCI <paddle_ci@example.com> Co-authored-by: pangyoki <pangyoki@126.com> Co-authored-by: jiangjiajun <jiangjiajun@baidu.lcom>
29 lines
700 B
C++
29 lines
700 B
C++
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "onnxoptimizer/pass.h"
|
|
|
|
namespace ONNX_NAMESPACE {
|
|
namespace optimization {
|
|
|
|
struct NopEmptyPass final : public FullGraphBasedPass {
|
|
explicit NopEmptyPass()
|
|
: FullGraphBasedPass(PassType::Nop, PassEfficiency::Complete,
|
|
PassOptimizationType::None) {}
|
|
|
|
std::string getPassName() const override {
|
|
return "nop";
|
|
}
|
|
PassAnalysisType getPassAnalysisType() const override {
|
|
return PassAnalysisType::Empty;
|
|
}
|
|
std::shared_ptr<PostPassAnalysis> runPass(Graph&) override {
|
|
return std::make_shared<PostPassAnalysis>();
|
|
}
|
|
};
|
|
} // namespace optimization
|
|
} // namespace ONNX_NAMESPACE
|