[mlpack-git] [mlpack] ANN Saving the network and reloading (#531)

stereomatchingkiss notifications at github.com
Tue Mar 1 20:46:30 EST 2016


>just return net (which is the FFN) and saved it to another auto'd variable from main.

Like theSundayProgrammer said, if you create your net by std::tie, the type of your net would take the reference of the layers, but not copy/move the layer(remember to define ARMA_USE_CXX11, else the matrix of armadillo cannot move). Return reference of the stack is not a good idea, because the stack will be destroy after you exit from scope. 

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/531#issuecomment-191013956
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160301/45fceb93/attachment.html>


More information about the mlpack-git mailing list