Commit 48da82cb authored by Robert Kimball's avatar Robert Kimball Committed by Scott Cyphers

address centos build error (#1421)

parent e37093a7
...@@ -410,7 +410,7 @@ void ngraph::check_fp_values_isinf(const char* name, const float* array, size_t ...@@ -410,7 +410,7 @@ void ngraph::check_fp_values_isinf(const char* name, const float* array, size_t
{ {
for (size_t i = 0; i < n; i++) for (size_t i = 0; i < n; i++)
{ {
if (isinf(array[i])) if (std::isinf(array[i]))
{ {
throw std::runtime_error("Discovered Inf in '" + string(name) + "'"); throw std::runtime_error("Discovered Inf in '" + string(name) + "'");
} }
...@@ -421,7 +421,7 @@ void ngraph::check_fp_values_isinf(const char* name, const double* array, size_t ...@@ -421,7 +421,7 @@ void ngraph::check_fp_values_isinf(const char* name, const double* array, size_t
{ {
for (size_t i = 0; i < n; i++) for (size_t i = 0; i < n; i++)
{ {
if (isinf(array[i])) if (std::isinf(array[i]))
{ {
throw std::runtime_error("Discovered Inf in '" + string(name) + "'"); throw std::runtime_error("Discovered Inf in '" + string(name) + "'");
} }
...@@ -432,7 +432,7 @@ void ngraph::check_fp_values_isnan(const char* name, const float* array, size_t ...@@ -432,7 +432,7 @@ void ngraph::check_fp_values_isnan(const char* name, const float* array, size_t
{ {
for (size_t i = 0; i < n; i++) for (size_t i = 0; i < n; i++)
{ {
if (isinf(array[i])) if (std::isinf(array[i]))
{ {
throw std::runtime_error("Discovered NaN in '" + string(name) + "'"); throw std::runtime_error("Discovered NaN in '" + string(name) + "'");
} }
...@@ -443,7 +443,7 @@ void ngraph::check_fp_values_isnan(const char* name, const double* array, size_t ...@@ -443,7 +443,7 @@ void ngraph::check_fp_values_isnan(const char* name, const double* array, size_t
{ {
for (size_t i = 0; i < n; i++) for (size_t i = 0; i < n; i++)
{ {
if (isinf(array[i])) if (std::isinf(array[i]))
{ {
throw std::runtime_error("Discovered NaN in '" + string(name) + "'"); throw std::runtime_error("Discovered NaN in '" + string(name) + "'");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment