message: Use std::isfinite instead of Py_IS_FINITE
diff: @@ -18,6 +18,8 @@ limitations under the License.
  #include <stdlib.h>
  #include <string.h>
  +#include <cmath>
  +
  #include "structmember.h" // NOLINT // For PyMemberDef
  #include "tensorflow/c/c_api.h"
  #include "tensorflow/c/eager/c_api.h"
  @@ -403,7 +405,7 @@ TFE_TensorHandle* ConvertToEagerTensor(TFE_Context* ctx, PyObject* value,
  if (handle != nullptr) return handle;
  handle = ConvertToEagerTensorUncached(ctx, value, dtype, device_name);
  if (handle == nullptr) return nullptr;
  - if (!PyFloat_Check(value) || Py_IS_FINITE(PyFloat_AS_DOUBLE(value))) {
  + if (!PyFloat_Check(value) || std::isfinite(PyFloat_AS_DOUBLE(value))) {
  cache->Insert(value, dtype, device_name, handle);
  }
  return handle;
  