提交 9f235756 编写于 作者: S Superjom

fix ci error

上级 d1945e8d
...@@ -12,7 +12,7 @@ void PlainNet::InferShape(Scope* scope) { ...@@ -12,7 +12,7 @@ void PlainNet::InferShape(Scope* scope) {
} }
void PlainNet::Run(Scope* scope, OpContext* context, OpIndex begin, void PlainNet::Run(Scope* scope, OpContext* context, OpIndex begin,
OpIndex end) const { OpIndex end) const {
// TODO Add implementation here. // TODO Add implementation here.
} }
......
...@@ -70,7 +70,7 @@ class Net { ...@@ -70,7 +70,7 @@ class Net {
* If no positive indexes are provided, all operators in `ops_` will run. * If no positive indexes are provided, all operators in `ops_` will run.
*/ */
virtual void Run(Scope *scope, OpContext *context, OpIndex begin = -1, virtual void Run(Scope *scope, OpContext *context, OpIndex begin = -1,
OpIndex end = -1) const = 0; OpIndex end = -1) const = 0;
/** /**
* @brief Add an Operator according to `def`. * @brief Add an Operator according to `def`.
...@@ -125,7 +125,7 @@ class PlainNet : public Net { ...@@ -125,7 +125,7 @@ class PlainNet : public Net {
* will be used. * will be used.
*/ */
virtual void Run(Scope *scope = nullptr, OpContext *context = nullptr, virtual void Run(Scope *scope = nullptr, OpContext *context = nullptr,
OpIndex begin = -1, OpIndex end = -1) const override; OpIndex begin = -1, OpIndex end = -1) const override;
/** /**
* @brief Add an operator to this network. * @brief Add an operator to this network.
...@@ -142,6 +142,8 @@ class PlainNet : public Net { ...@@ -142,6 +142,8 @@ class PlainNet : public Net {
*/ */
virtual void AddBackwardOps() override; virtual void AddBackwardOps() override;
virtual ~PlainNet() override {}
protected: protected:
/** /**
* @brief Build the network. * @brief Build the network.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册