[mlpack-git] master: format codes (8fd4466)
gitdub at mlpack.org
gitdub at mlpack.org
Sat Feb 27 10:52:50 EST 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/a2e57d617e952f1ea2fda8a23e1c6bd2f78beb6d...1bedf15126f6bd0bc93a3233914ac95486a3c0da
>---------------------------------------------------------------
commit 8fd4466a42dd50b61cb13726621a9a85c2c0581f
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date: Sat Feb 27 23:52:50 2016 +0800
format codes
>---------------------------------------------------------------
8fd4466a42dd50b61cb13726621a9a85c2c0581f
src/mlpack/methods/ann/layer/conv_layer.hpp | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/mlpack/methods/ann/layer/conv_layer.hpp b/src/mlpack/methods/ann/layer/conv_layer.hpp
index 287d587..1375838 100644
--- a/src/mlpack/methods/ann/layer/conv_layer.hpp
+++ b/src/mlpack/methods/ann/layer/conv_layer.hpp
@@ -179,15 +179,6 @@ class ConvLayer
}
}
- /**
- * Serialize the layer
- */
- template<typename Archive>
- void Serialize(Archive& ar, const unsigned int /* version */)
- {
- ar & data::CreateNVP(weights, "weights");
- }
-
//! Get the weights.
OutputDataType& Weights() const { return weights; }
//! Modify the weights.
@@ -213,6 +204,15 @@ class ConvLayer
//! Modify the gradient.
OutputDataType& Gradient() { return gradient; }
+ /**
+ * Serialize the layer
+ */
+ template<typename Archive>
+ void Serialize(Archive& ar, const unsigned int /* version */)
+ {
+ ar & data::CreateNVP(weights, "weights");
+ }
+
private:
/*
* Rotates a 3rd-order tesor counterclockwise by 180 degrees.
More information about the mlpack-git
mailing list