nextafter templates off one type
authorAlejandro Dubrovsky <alito@organicrobot.com>
Wed, 22 Jan 2014 11:56:17 +0000 (22:56 +1100)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Fri, 21 Mar 2014 20:52:35 +0000 (13:52 -0700)
src/caffe/util/math_functions.cpp

index 46c82db..acd0343 100644 (file)
@@ -378,7 +378,7 @@ void caffe_exp<double>(const int n, const double* a, double* y) {
 
 template <typename Dtype>
 Dtype caffe_nextafter(const Dtype b) {
-  return boost::math::nextafter<Dtype, Dtype>(
+  return boost::math::nextafter<Dtype>(
       b, std::numeric_limits<Dtype>::max());
 }