diff --git a/paddle/framework/operator.h b/paddle/framework/operator.h index 10034c58e9d1777f14cc9896a2048ac899e64461..5f44972dd65766c39777952837ad2f53b1a03d56 100644 --- a/paddle/framework/operator.h +++ b/paddle/framework/operator.h @@ -63,6 +63,7 @@ class ExecutionContext; */ class OperatorBase { public: + OperatorBase() {} // TODO(yi): This constructor is to be removed. OperatorBase(const std::string& type, const std::vector& inputs, const std::vector& outputs, const AttributeMap& attrs,