From fac6965de1a692dbd8a8267f985eb01be4753ed9 Mon Sep 17 00:00:00 2001 From: Marcus Edel Date: Mon, 17 Sep 2018 00:29:09 +0200 Subject: [PATCH] Fix ambiguous call to overloaded function (size). --- src/mlpack/methods/ann/layer/elu.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlpack/methods/ann/layer/elu.hpp b/src/mlpack/methods/ann/layer/elu.hpp index 5e273a6dc1..a4b232377c 100644 --- a/src/mlpack/methods/ann/layer/elu.hpp +++ b/src/mlpack/methods/ann/layer/elu.hpp @@ -194,7 +194,7 @@ class ELU template void Fn(const arma::Mat& x, arma::Mat& y) { - y.set_size(size(x)); + y.set_size(arma::size(x)); for (size_t i = 0; i < x.n_elem; i++) {