[mlpack-git] master: Fix unused parameter warning. (90309ec)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Mon Jun 8 16:03:34 EDT 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/7d6afa56cebfcd516dca9c25ab0eabb03f7c0e48...90309ec1b1ddac4b2d839752b4dc9fbaff19db9a

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

commit 90309ec1b1ddac4b2d839752b4dc9fbaff19db9a
Author: Marcus Edel <marcus.edel at fu-berlin.de>
Date:   Mon Jun 8 22:03:27 2015 +0200

    Fix unused parameter warning.


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

90309ec1b1ddac4b2d839752b4dc9fbaff19db9a
 src/mlpack/methods/ann/connections/full_connection.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/methods/ann/connections/full_connection.hpp b/src/mlpack/methods/ann/connections/full_connection.hpp
index 9242b76..7b6a4b9 100644
--- a/src/mlpack/methods/ann/connections/full_connection.hpp
+++ b/src/mlpack/methods/ann/connections/full_connection.hpp
@@ -206,7 +206,7 @@ class FullConnection
    * @param gradient The calculated gradient.
    */
   template<typename eT>
-  void GradientDelta(arma::Mat<eT>& delta, arma::Cube<eT>& gradient)
+  void GradientDelta(arma::Mat<eT>& /* unused */, arma::Cube<eT>& gradient)
   {
     gradient = arma::Cube<eT>(weights.n_rows, weights.n_cols, 1);
     arma::Mat<eT> data = arma::Mat<eT>(outputLayer.Delta().n_cols,
@@ -235,7 +235,7 @@ class FullConnection
    * @param gradient The calculated gradient.
    */
   template<typename eT>
-  void GradientDelta(arma::Cube<eT>& delta, arma::Cube<eT>& gradient)
+  void GradientDelta(arma::Cube<eT>& /* unused */, arma::Cube<eT>& gradient)
   {
     gradient = arma::Cube<eT>(weights.n_rows, weights.n_cols, 1);
   }



More information about the mlpack-git mailing list