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

Add missing ctor

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