提交 568c03ba 编写于 作者: S Superjom

add virtual implementation

上级 5c10a5ad
......@@ -91,6 +91,8 @@ class Net {
* @brief Create a network.
*/
static std::unique_ptr<Net> Create(const NetDesc &def = NetDesc());
virtual ~Net() {}
};
/**
......@@ -140,6 +142,8 @@ class PlainNet : public Net {
*/
virtual void AddBackwardOps() override;
virtual ~PlainNet() override {}
protected:
/**
* @brief Build the network.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册