some namespace simplification
authorYangqing Jia <jiayq@google.com>
Mon, 13 Oct 2014 20:48:27 +0000 (13:48 -0700)
committerYangqing Jia <jiayq@google.com>
Mon, 13 Oct 2014 20:48:27 +0000 (13:48 -0700)
include/caffe/common.hpp
src/caffe/layers/exp_layer.cpp

index e7776ba..81b2e9a 100644 (file)
@@ -74,6 +74,7 @@ using boost::shared_ptr;
 using std::fstream;
 using std::ios;
 using std::isnan;
+using std::isinf;
 using std::iterator;
 using std::make_pair;
 using std::map;
index 25da120..2c99bfc 100644 (file)
@@ -18,9 +18,9 @@ void ExpLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
   // If base == -1, interpret the base as e and set log_base = 1 exactly.
   // Otherwise, calculate its log explicitly.
   const Dtype log_base = (base == Dtype(-1)) ? Dtype(1) : log(base);
-  CHECK(!std::isnan(log_base))
+  CHECK(!isnan(log_base))
       << "NaN result: log(base) = log(" << base << ") = " << log_base;
-  CHECK(!std::isinf(log_base))
+  CHECK(!isinf(log_base))
       << "Inf result: log(base) = log(" << base << ") = " << log_base;
   const Dtype input_scale = this->layer_param_.exp_param().scale();
   const Dtype input_shift = this->layer_param_.exp_param().shift();