From: Alejandro Dubrovsky Date: Wed, 22 Jan 2014 11:56:17 +0000 (+1100) Subject: nextafter templates off one type X-Git-Tag: submit/tizen/20180823.020014~692^2~83^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ae2683fb84a210a7030efaf2287c75966260fac;p=platform%2Fupstream%2Fcaffeonacl.git nextafter templates off one type --- diff --git a/src/caffe/util/math_functions.cpp b/src/caffe/util/math_functions.cpp index 46c82db..acd0343 100644 --- a/src/caffe/util/math_functions.cpp +++ b/src/caffe/util/math_functions.cpp @@ -378,7 +378,7 @@ void caffe_exp(const int n, const double* a, double* y) { template Dtype caffe_nextafter(const Dtype b) { - return boost::math::nextafter( + return boost::math::nextafter( b, std::numeric_limits::max()); }