[mlpack-git] master: Don't use a generalized template parameter in the forward function. (7b10efd)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Dec 31 12:55:09 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/6945c11b8a626229ec6577ba72c88a74c2964e80...7b10efdbc1dececa97254f1bcf615250a8e04e6e
>---------------------------------------------------------------
commit 7b10efdbc1dececa97254f1bcf615250a8e04e6e
Author: marcus <marcus.edel at fu-berlin.de>
Date: Thu Dec 31 18:54:57 2015 +0100
Don't use a generalized template parameter in the forward function.
>---------------------------------------------------------------
7b10efdbc1dececa97254f1bcf615250a8e04e6e
src/mlpack/methods/ann/layer/linear_layer.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/methods/ann/layer/linear_layer.hpp b/src/mlpack/methods/ann/layer/linear_layer.hpp
index aebe173..a556862 100644
--- a/src/mlpack/methods/ann/layer/linear_layer.hpp
+++ b/src/mlpack/methods/ann/layer/linear_layer.hpp
@@ -98,8 +98,8 @@ class LinearLayer
* @param input Input data used for evaluating the specified function.
* @param output Resulting output activation.
*/
- template<typename InputType, typename OutputType>
- void Forward(const InputType& input, OutputType& output)
+ template<typename eT>
+ void Forward(const arma::Mat<eT>& input, arma::Mat<eT>& output)
{
output = weights * input;
}
More information about the mlpack-git
mailing list