From 330c8385751f9ec10de2ffe43d83f32cc764655d Mon Sep 17 00:00:00 2001 From: Prabhat Date: Tue, 13 Mar 2018 08:53:37 +0530 Subject: [PATCH] Minor change --- src/mlpack/methods/ann/init_rules/glorot_init.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mlpack/methods/ann/init_rules/glorot_init.hpp b/src/mlpack/methods/ann/init_rules/glorot_init.hpp index a75a6d3d33..f82402ebfd 100644 --- a/src/mlpack/methods/ann/init_rules/glorot_init.hpp +++ b/src/mlpack/methods/ann/init_rules/glorot_init.hpp @@ -96,7 +96,7 @@ inline void GlorotInitializationType::Initialize(arma::Mat& W, if (W.is_empty()) W = arma::mat(rows, cols); - double_t var = (double)(2)/(rows + cols); + double var = 2.0/double(rows + cols); GaussianInitialization normalInit(0.0, var); normalInit.Initialize(W, rows, cols); } @@ -110,7 +110,7 @@ inline void GlorotInitializationType::Initialize(arma::Mat& W, if (W.is_empty()) W = arma::mat(rows, cols); - double_t a = sqrt(6) / sqrt(rows + cols); // limit of distribution + double a = sqrt(6) / sqrt(rows + cols); // limit of distribution RandomInitialization randomInit(-a, a); randomInit.Initialize(W, rows, cols); }