diff --git a/paddle/fluid/inference/paddle_inference.map b/paddle/fluid/inference/paddle_inference.map index acbdcf5d783583df69657ea4335a1ab9a91caeeb..3d2dc85cb8368fe387a8d5c4a6c2ac6f61bac1d1 100644 --- a/paddle/fluid/inference/paddle_inference.map +++ b/paddle/fluid/inference/paddle_inference.map @@ -39,9 +39,6 @@ *paddle::GPUContextResource*; *paddle::CPUContextResource*; - *paddle::LoadCustomOperatorLib*; - *paddle::RegisterAllCustomOperator*; - /* ut needs the following symbol, we need to modify all the ut to hidden such symbols */ /* Another question: the ut size will grow from 50M to 80M, why? */ diff --git a/paddle/fluid/inference/paddle_inference_custom_device.map b/paddle/fluid/inference/paddle_inference_custom_device.map index 83de7d9a77566f7b84798b0bb794dfb86ffab7f4..7434678d8679ad6387be370cae87e0f2da67f4ad 100644 --- a/paddle/fluid/inference/paddle_inference_custom_device.map +++ b/paddle/fluid/inference/paddle_inference_custom_device.map @@ -39,9 +39,6 @@ *paddle::GPUContextResource*; *paddle::CPUContextResource*; - *paddle::LoadCustomOperatorLib*; - *paddle::RegisterAllCustomOperator*; - /* ut needs the following symbol, we need to modify all the ut to hidden such symbols */ /* Another question: the ut size will grow from 50M to 80M, why? */ diff --git a/paddle/phi/api/ext/op_meta_info.h b/paddle/phi/api/ext/op_meta_info.h index 7d2be9c90d79ed5b950d3d23866833e8511a98fc..978599c3bc299acb21b21255f8732feb4e82c537 100644 --- a/paddle/phi/api/ext/op_meta_info.h +++ b/paddle/phi/api/ext/op_meta_info.h @@ -619,16 +619,6 @@ class PADDLE_API OpMetaInfoBuilder { size_t index_; }; -/////////////////////// Op register API ///////////////////////// - -// For inference: compile directly with framework -// Call after PD_BUILD_OP(...) -void RegisterAllCustomOperator(); - -// Using this api to load compiled custom operator's dynamic library and -// register Custom Operator into it -void LoadCustomOperatorLib(const std::string& dso_name); - /////////////////////// Op register Macro ///////////////////////// #define PD_BUILD_OP(op_name) \ diff --git a/paddle/phi/api/lib/op_meta_info.cc b/paddle/phi/api/lib/op_meta_info.cc index 8d64246bdb69f8ec4cc7173310530b705e7ffe04..a6b7921c30c61cd142b72cbda3f59b7db005fb08 100644 --- a/paddle/phi/api/lib/op_meta_info.cc +++ b/paddle/phi/api/lib/op_meta_info.cc @@ -19,7 +19,6 @@ limitations under the License. */ #include #include "glog/logging.h" -#include "paddle/fluid/framework/custom_operator.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/enforce.h" @@ -244,17 +243,6 @@ OpMetaInfoBuilder& OpMetaInfoBuilder::SetInferDtypeFn(InferDtypeFunc func) { info_ptr_->SetInferDtypeFn(std::forward(func)); return *this; } - -/////////////////////// Op register API ///////////////////////// - -void RegisterAllCustomOperator() { - auto& op_meta_info_map = OpMetaInfoMap::Instance(); - framework::RegisterOperatorWithMetaInfoMap(op_meta_info_map); -} - -void LoadCustomOperatorLib(const std::string& dso_name) { - paddle::framework::LoadOpMetaInfoAndRegisterOp(dso_name); -} } // namespace paddle #ifdef __cplusplus