[mlpack-git] [mlpack] Provide serialization for ann module (#495)

stereomatchingkiss notifications at github.com
Sun Dec 13 15:29:12 EST 2015


I have a question about the serialization, FFN accept the reference of the outputLayer, but this make it very hard to serialize, could I make it take the copy or rvalue of the outputLayer?

    template<typename Network, typename OutputLayer>
    FFN(Network &&network, OutputLayer &&outputLayer,
        PerformanceFunction performanceFunction = PerformanceFunction()) : 
        network(std::forward<Network>(network)),
        outputLayer(std::forward<outputLayer>(outputLayer)),
        performanceFunction(std::move(performanceFunction))
    //

If the users need to access the output layer, we could add a public api for them to access it Any suggestions?

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/495
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20151213/e572aa87/attachment.html>


More information about the mlpack-git mailing list