[mlpack-git] master: Minor style and formatting changes. (633c18c)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Sat Nov 14 11:18:59 EST 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/7388de71d5398103ee3a0b32b4026902a40a67b3...69b969be75362bf93c222f9cd3da77d4f6694352

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

commit 633c18c75614c69d3d4c5e908dfe64c3436a0da5
Author: marcus <marcus.edel at fu-berlin.de>
Date:   Sat Nov 14 17:15:01 2015 +0100

    Minor style and formatting changes.


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

633c18c75614c69d3d4c5e908dfe64c3436a0da5
 src/mlpack/methods/ann/cnn.hpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/mlpack/methods/ann/cnn.hpp b/src/mlpack/methods/ann/cnn.hpp
index c821200..3f68efb 100644
--- a/src/mlpack/methods/ann/cnn.hpp
+++ b/src/mlpack/methods/ann/cnn.hpp
@@ -98,7 +98,7 @@ class CNN
   void Predict(const InputDataType& input, OutputDataType& output)
   {
     deterministic = true;
-    ResetParameter(network);
+    ResetParameter<>(network);
 
     Forward(input, network);
     OutputPrediction(output, network);
@@ -118,7 +118,7 @@ class CNN
                   ErrorType& error)
   {
     deterministic = false;
-    ResetParameter(network);
+    ResetParameter<>(network);
 
     Forward(input, network);
     return OutputError(target, error, network);
@@ -140,8 +140,7 @@ class CNN
    */
   template<size_t I = 0, typename... Tp>
   typename std::enable_if<I == sizeof...(Tp), void>::type
-  ResetParameter(std::tuple<Tp...>& /* unused */) { /* Nothing to do here */
-  }
+  ResetParameter(std::tuple<Tp...>& /* unused */) { /* Nothing to do here */ }
 
   template<size_t I = 0, typename... Tp>
   typename std::enable_if<I < sizeof...(Tp), void>::type



More information about the mlpack-git mailing list