// 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();