diff --git a/paddle/fluid/operators/squeeze_op.cc b/paddle/fluid/operators/squeeze_op.cc index 55068e84d7e0b18d28ffe37805d32acb39f8e543..7c07cfdb7ed1c227c8dbbe107da1377ae458a83a 100644 --- a/paddle/fluid/operators/squeeze_op.cc +++ b/paddle/fluid/operators/squeeze_op.cc @@ -96,10 +96,7 @@ class SqueezeOpInferShape : public framework::InferShapeBase { class SqueezeOp : public framework::OperatorBase { public: - SqueezeOp(const std::string &type, const framework::VariableNameMap &inputs, - const framework::VariableNameMap &outputs, - const framework::AttributeMap &attrs) - : OperatorBase(type, inputs, outputs, attrs) {} + using OperatorBase::OperatorBase; private: void RunImpl(const framework::Scope &scope, @@ -171,11 +168,7 @@ class SqueezeGradInferShape : public framework::InferShapeBase { class SqueezeGradOp : public framework::OperatorBase { public: - SqueezeGradOp(const std::string &type, - const framework::VariableNameMap &inputs, - const framework::VariableNameMap &outputs, - const framework::AttributeMap &attrs) - : OperatorBase(type, inputs, outputs, attrs) {} + using OperatorBase::OperatorBase; private: void RunImpl(const framework::Scope &scope,