[mlpack-git] master: remove serialization of net (f89396b)

gitdub at mlpack.org gitdub at mlpack.org
Wed Mar 2 00:31:35 EST 2016


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

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

commit f89396b84f52c41665cbd61e8cb654dd11d95c8f
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date:   Wed Mar 2 13:31:35 2016 +0800

    remove serialization of net


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

f89396b84f52c41665cbd61e8cb654dd11d95c8f
 src/mlpack/methods/ann/cnn_impl.hpp | 4 ----
 src/mlpack/methods/ann/ffn_impl.hpp | 4 ----
 src/mlpack/methods/ann/rnn_impl.hpp | 4 ----
 3 files changed, 12 deletions(-)

diff --git a/src/mlpack/methods/ann/cnn_impl.hpp b/src/mlpack/methods/ann/cnn_impl.hpp
index 04c492e..3b568c4 100644
--- a/src/mlpack/methods/ann/cnn_impl.hpp
+++ b/src/mlpack/methods/ann/cnn_impl.hpp
@@ -10,8 +10,6 @@
 // In case it hasn't been included yet.
 #include "cnn.hpp"
 
-#include <mlpack/core/util/tuple_serialize.hpp>
-
 namespace mlpack {
 namespace ann /** Artificial Neural Network. */ {
 
@@ -267,8 +265,6 @@ LayerTypes, OutputLayerType, InitializationRuleType, PerformanceFunction
 >::Serialize(Archive& ar, const unsigned int /* version */)
 {
   ar & data::CreateNVP(parameter, "parameter");
-  ar & data::CreateNVP<0, std::tuple_size<LayerTypes>::value-1>
-      (network, "network");
 }
 
 } // namespace ann
diff --git a/src/mlpack/methods/ann/ffn_impl.hpp b/src/mlpack/methods/ann/ffn_impl.hpp
index 1612eb8..041b301 100644
--- a/src/mlpack/methods/ann/ffn_impl.hpp
+++ b/src/mlpack/methods/ann/ffn_impl.hpp
@@ -10,8 +10,6 @@
 // In case it hasn't been included yet.
 #include "ffn.hpp"
 
-#include <mlpack/core/util/tuple_serialize.hpp>
-
 namespace mlpack {
 namespace ann /** Artificial Neural Network. */ {
 
@@ -271,8 +269,6 @@ LayerTypes, OutputLayerType, InitializationRuleType, PerformanceFunction
 >::Serialize(Archive& ar, const unsigned int /* version */)
 {
   ar & data::CreateNVP(parameter, "parameter");    
-  ar & data::CreateNVP<0, std::tuple_size<LayerTypes>::value-1>
-      (network, "network");
 }
 
 } // namespace ann
diff --git a/src/mlpack/methods/ann/rnn_impl.hpp b/src/mlpack/methods/ann/rnn_impl.hpp
index eb57b66..a55915f 100644
--- a/src/mlpack/methods/ann/rnn_impl.hpp
+++ b/src/mlpack/methods/ann/rnn_impl.hpp
@@ -10,8 +10,6 @@
 // In case it hasn't been included yet.
 #include "rnn.hpp"
 
-#include <mlpack/core/util/tuple_serialize.hpp>
-
 namespace mlpack {
 namespace ann /** Artificial Neural Network. */ {
 
@@ -330,8 +328,6 @@ LayerTypes, OutputLayerType, InitializationRuleType, PerformanceFunction
 >::Serialize(Archive& ar, const unsigned int /* version */)
 {
   ar & data::CreateNVP(parameter, "parameter");  
-  ar & data::CreateNVP<0, std::tuple_size<LayerTypes>::value-1>
-      (network, "network");
 }
 
 } // namespace ann




More information about the mlpack-git mailing list