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

simplify construct function

上级 9ca8db23
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册