From 760cb6c8615fe3eece8d831ef78e10da4b552246 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Wed, 23 Aug 2017 15:47:18 +0800 Subject: [PATCH] Follow jiayi's comment --- paddle/framework/operator.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/paddle/framework/operator.h b/paddle/framework/operator.h index 83dab8631d5..8397570d26f 100644 --- a/paddle/framework/operator.h +++ b/paddle/framework/operator.h @@ -132,21 +132,21 @@ class OperatorBase { // Macro for define a clone method. // If you are writing an kernel operator, `Clone` will be defined when you // register it. i.e. `Clone` method is not needed to define by yourself. -#define DEFINE_OP_CLONE_METHOD(CLS) \ +#define DEFINE_OP_CLONE_METHOD(cls) \ std::unique_ptr Clone() const final { \ - return std::unique_ptr(new CLS(*this)); \ + return std::unique_ptr(new cls(*this)); \ } // Macro for define a default constructor for Operator. // You can also use // using PARENT_CLASS::PARENT_CLASS; // to use parent's constructor. -#define DEFINE_OP_CONSTRUCTOR(CLS, PARENT_CLS) \ - CLS(const std::string& type, \ +#define DEFINE_OP_CONSTRUCTOR(cls, parent_cls) \ + cls(const std::string& type, \ const ::paddle::framework::VariableNameMap& inputs, \ const ::paddle::framework::VariableNameMap& outputs, \ const paddle::framework::AttributeMap& attrs) \ - : PARENT_CLS(type, inputs, outputs, attrs) {} + : parent_cls(type, inputs, outputs, attrs) {} class NOP : public OperatorBase { public: -- GitLab