[mlpack-git] master: Remove extra semicolon which produces a warning when compiling with the -pedantic option. (6945c11)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Dec 31 12:48:39 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/29c0405173902f366d241e19dabfe3d679f8bea8...6945c11b8a626229ec6577ba72c88a74c2964e80

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

commit 6945c11b8a626229ec6577ba72c88a74c2964e80
Author: marcus <marcus.edel at fu-berlin.de>
Date:   Thu Dec 31 18:48:30 2015 +0100

    Remove extra semicolon which produces a warning when compiling with the -pedantic option.


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

6945c11b8a626229ec6577ba72c88a74c2964e80
 src/mlpack/methods/ann/layer/conv_layer.hpp      | 4 ++--
 src/mlpack/methods/ann/layer/dropout_layer.hpp   | 4 ++--
 src/mlpack/methods/ann/layer/lstm_layer.hpp      | 4 ++--
 src/mlpack/methods/ann/layer/pooling_layer.hpp   | 4 ++--
 src/mlpack/methods/ann/layer/recurrent_layer.hpp | 6 +++---
 src/mlpack/methods/ann/layer/softmax_layer.hpp   | 4 ++--
 6 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/mlpack/methods/ann/layer/conv_layer.hpp b/src/mlpack/methods/ann/layer/conv_layer.hpp
index 1250984..26386f0 100644
--- a/src/mlpack/methods/ann/layer/conv_layer.hpp
+++ b/src/mlpack/methods/ann/layer/conv_layer.hpp
@@ -388,7 +388,7 @@ class LayerTraits<ConvLayer<OptimizerType,
   static const bool IsConnection = true;
 };
 
-}; // namespace ann
-}; // namespace mlpack
+} // namespace ann
+} // namespace mlpack
 
 #endif
diff --git a/src/mlpack/methods/ann/layer/dropout_layer.hpp b/src/mlpack/methods/ann/layer/dropout_layer.hpp
index 2c8dc96..2b8b85a 100644
--- a/src/mlpack/methods/ann/layer/dropout_layer.hpp
+++ b/src/mlpack/methods/ann/layer/dropout_layer.hpp
@@ -250,7 +250,7 @@ template <
 >
 using DropoutLayer2D = DropoutLayer<InputDataType, OutputDataType>;
 
-}; // namespace ann
-}; // namespace mlpack
+} // namespace ann
+} // namespace mlpack
 
 #endif
diff --git a/src/mlpack/methods/ann/layer/lstm_layer.hpp b/src/mlpack/methods/ann/layer/lstm_layer.hpp
index 8cffae1..e54243f 100644
--- a/src/mlpack/methods/ann/layer/lstm_layer.hpp
+++ b/src/mlpack/methods/ann/layer/lstm_layer.hpp
@@ -458,7 +458,7 @@ class LayerTraits<LSTMLayer<OptimizerType,
   static const bool IsConnection = false;
 };
 
-}; // namespace ann
-}; // namespace mlpack
+} // namespace ann
+} // namespace mlpack
 
 #endif
diff --git a/src/mlpack/methods/ann/layer/pooling_layer.hpp b/src/mlpack/methods/ann/layer/pooling_layer.hpp
index 69455c8..c8eca2e 100644
--- a/src/mlpack/methods/ann/layer/pooling_layer.hpp
+++ b/src/mlpack/methods/ann/layer/pooling_layer.hpp
@@ -251,7 +251,7 @@ class LayerTraits<PoolingLayer<PoolingRule, InputDataType, OutputDataType> >
 };
 
 
-}; // namespace ann
-}; // namespace mlpack
+} // namespace ann
+} // namespace mlpack
 
 #endif
diff --git a/src/mlpack/methods/ann/layer/recurrent_layer.hpp b/src/mlpack/methods/ann/layer/recurrent_layer.hpp
index 42859f5..60e9476 100644
--- a/src/mlpack/methods/ann/layer/recurrent_layer.hpp
+++ b/src/mlpack/methods/ann/layer/recurrent_layer.hpp
@@ -125,7 +125,7 @@ class RecurrentLayer
   template<typename eT>
   void Forward(const arma::Mat<eT>& input, arma::Mat<eT>& output)
   {
-    output = input + (weights) * recurrentParameter;
+    output = input + weights * recurrentParameter;
   }
 
   /**
@@ -258,7 +258,7 @@ class LayerTraits<RecurrentLayer<
   static const bool IsConnection = true;
 };
 
-}; // namespace ann
-}; // namespace mlpack
+} // namespace ann
+} // namespace mlpack
 
 #endif
diff --git a/src/mlpack/methods/ann/layer/softmax_layer.hpp b/src/mlpack/methods/ann/layer/softmax_layer.hpp
index 490daa5..860d57a 100644
--- a/src/mlpack/methods/ann/layer/softmax_layer.hpp
+++ b/src/mlpack/methods/ann/layer/softmax_layer.hpp
@@ -108,7 +108,7 @@ class SoftmaxLayer
   OutputDataType outputParameter;
 }; // class SoftmaxLayer
 
-}; // namespace ann
-}; // namespace mlpack
+} // namespace ann
+} // namespace mlpack
 
 #endif



More information about the mlpack-git mailing list