add virtual implementation

gangliao-patch-1
Superjom 8 years ago
parent 5c10a5ad55
commit 568c03ba1d

@ -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.

Loading…
Cancel
Save