提交 1721613f 编写于 作者: C chenweihang

simplify construct function

上级 9ca8db23
...@@ -96,10 +96,7 @@ class SqueezeOpInferShape : public framework::InferShapeBase { ...@@ -96,10 +96,7 @@ class SqueezeOpInferShape : public framework::InferShapeBase {
class SqueezeOp : public framework::OperatorBase { class SqueezeOp : public framework::OperatorBase {
public: public:
SqueezeOp(const std::string &type, const framework::VariableNameMap &inputs, using OperatorBase::OperatorBase;
const framework::VariableNameMap &outputs,
const framework::AttributeMap &attrs)
: OperatorBase(type, inputs, outputs, attrs) {}
private: private:
void RunImpl(const framework::Scope &scope, void RunImpl(const framework::Scope &scope,
...@@ -171,11 +168,7 @@ class SqueezeGradInferShape : public framework::InferShapeBase { ...@@ -171,11 +168,7 @@ class SqueezeGradInferShape : public framework::InferShapeBase {
class SqueezeGradOp : public framework::OperatorBase { class SqueezeGradOp : public framework::OperatorBase {
public: public:
SqueezeGradOp(const std::string &type, using OperatorBase::OperatorBase;
const framework::VariableNameMap &inputs,
const framework::VariableNameMap &outputs,
const framework::AttributeMap &attrs)
: OperatorBase(type, inputs, outputs, attrs) {}
private: private:
void RunImpl(const framework::Scope &scope, void RunImpl(const framework::Scope &scope,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册