[mlpack-git] master: implement serialize (f64a84b)

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


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

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

commit f64a84b07292348562b83848c2773c309bf43e4c
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date:   Sat Feb 27 15:52:49 2016 +0800

    implement serialize


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

f64a84b07292348562b83848c2773c309bf43e4c
 src/mlpack/methods/ann/layer/dropout_layer.hpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/mlpack/methods/ann/layer/dropout_layer.hpp b/src/mlpack/methods/ann/layer/dropout_layer.hpp
index 4fa46af..2b74c87 100644
--- a/src/mlpack/methods/ann/layer/dropout_layer.hpp
+++ b/src/mlpack/methods/ann/layer/dropout_layer.hpp
@@ -197,6 +197,14 @@ class DropoutLayer
   //! Modify the value of the rescale parameter.
   bool& Rescale() {return rescale; }
   
+  /**
+   * Serialize the layer
+   */
+  template<typename Archive>
+  void Serialize(Archive& ar, const unsigned int /* version */)
+  {    				
+  }
+
  private:
   //! Locally-stored delta object.
   OutputDataType delta;




More information about the mlpack-git mailing list