From 6b99402d5dbb5baed83972e6a06e8ba3f0f58090 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Sun, 24 Dec 2017 19:52:03 +0800 Subject: [PATCH] rm unsed RegisterOp method in OpRegistry --- paddle/framework/op_registry.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/paddle/framework/op_registry.h b/paddle/framework/op_registry.h index 7f0155b61f4..244c1174655 100644 --- a/paddle/framework/op_registry.h +++ b/paddle/framework/op_registry.h @@ -61,17 +61,6 @@ struct OperatorRegistrar : public Registrar { class OpRegistry { public: - template - static void RegisterOp(const std::string& op_type, - const std::string& grad_op_type) { - OperatorRegistrar reg(op_type.c_str()); - reg.info.grad_op_type_ = grad_op_type; - // register gradient op - if (!grad_op_type.empty()) { - OperatorRegistrar grad_reg(grad_op_type.c_str()); - } - } - static std::unique_ptr CreateOp(const std::string& type, const VariableNameMap& inputs, const VariableNameMap& outputs, -- GitLab