提交 3723304d 编写于 作者: Y Yu Yang

Add missing ctor

上级 32fbc6b2
...@@ -79,6 +79,8 @@ class GradOpDescMakerBase { ...@@ -79,6 +79,8 @@ class GradOpDescMakerBase {
class SingleGradOpDescMaker : public GradOpDescMakerBase { class SingleGradOpDescMaker : public GradOpDescMakerBase {
public: public:
using GradOpDescMakerBase::GradOpDescMakerBase;
std::vector<OpDescBind> operator()() const { return {this->Apply()}; } std::vector<OpDescBind> operator()() const { return {this->Apply()}; }
protected: protected:
...@@ -86,6 +88,9 @@ class SingleGradOpDescMaker : public GradOpDescMakerBase { ...@@ -86,6 +88,9 @@ class SingleGradOpDescMaker : public GradOpDescMakerBase {
}; };
class DefaultGradOpDescMaker : public SingleGradOpDescMaker { class DefaultGradOpDescMaker : public SingleGradOpDescMaker {
public:
using SingleGradOpDescMaker::SingleGradOpDescMaker;
protected: protected:
virtual OpDescBind Apply() const { virtual OpDescBind Apply() const {
OpDescBind grad; OpDescBind grad;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册