[mlpack-git] master: implement serialize (2779906)
gitdub at mlpack.org
gitdub at mlpack.org
Sat Feb 27 10:45:22 EST 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/a2e57d617e952f1ea2fda8a23e1c6bd2f78beb6d...1bedf15126f6bd0bc93a3233914ac95486a3c0da
>---------------------------------------------------------------
commit 277990681b33ecd102acb34a31cac25fe70d68f2
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date: Sat Feb 27 23:45:22 2016 +0800
implement serialize
>---------------------------------------------------------------
277990681b33ecd102acb34a31cac25fe70d68f2
src/mlpack/methods/ann/layer/one_hot_layer.hpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/mlpack/methods/ann/layer/one_hot_layer.hpp b/src/mlpack/methods/ann/layer/one_hot_layer.hpp
index e820632..b070d5d 100644
--- a/src/mlpack/methods/ann/layer/one_hot_layer.hpp
+++ b/src/mlpack/methods/ann/layer/one_hot_layer.hpp
@@ -62,6 +62,14 @@ class OneHotLayer
inputActivations.max(maxIndex);
output(maxIndex) = 1;
}
+
+ /**
+ * Serialize the layer
+ */
+ template<typename Archive>
+ void Serialize(Archive& ar, const unsigned int /* version */)
+ {
+ }
}; // class OneHotLayer
//! Layer traits for the one-hot class classification layer.
More information about the mlpack-git
mailing list