[mlpack-git] master: implement serialize (2cba975)

gitdub at mlpack.org gitdub at mlpack.org
Sat Feb 27 02:49:59 EST 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/a2e57d617e952f1ea2fda8a23e1c6bd2f78beb6d...1bedf15126f6bd0bc93a3233914ac95486a3c0da

>---------------------------------------------------------------

commit 2cba975c7e4b30ebd86a7376dc09125cadb51558
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date:   Sat Feb 27 15:49:59 2016 +0800

    implement serialize


>---------------------------------------------------------------

2cba975c7e4b30ebd86a7376dc09125cadb51558
 src/mlpack/methods/ann/layer/lstm_layer.hpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/mlpack/methods/ann/layer/lstm_layer.hpp b/src/mlpack/methods/ann/layer/lstm_layer.hpp
index 0ac04e7..da990ac 100644
--- a/src/mlpack/methods/ann/layer/lstm_layer.hpp
+++ b/src/mlpack/methods/ann/layer/lstm_layer.hpp
@@ -292,6 +292,14 @@ class LSTMLayer
   //! Modify the sequence length.
   size_t& SeqLen() { return seqLen; }
   
+  /**
+   * Serialize the layer
+   */
+  template<typename Archive>
+  void Serialize(Archive& ar, const unsigned int /* version */)
+  {    			
+  }
+
  private:
   //! Locally-stored number of output units.
   size_t outSize;




More information about the mlpack-git mailing list