From eadaa5441772980a5db1d3db75d3e7617760e450 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 18 Mar 2019 14:32:43 -0700 Subject: [PATCH] Qualify calls to some functions from . PiperOrigin-RevId: 239062617 --- tensorflow/contrib/tensor_forest/hybrid/core/ops/utils.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tensorflow/contrib/tensor_forest/hybrid/core/ops/utils.cc b/tensorflow/contrib/tensor_forest/hybrid/core/ops/utils.cc index 34388fe1aab..c7c6a85bf6a 100644 --- a/tensorflow/contrib/tensor_forest/hybrid/core/ops/utils.cc +++ b/tensorflow/contrib/tensor_forest/hybrid/core/ops/utils.cc @@ -15,6 +15,7 @@ #include "tensorflow/contrib/tensor_forest/hybrid/core/ops/utils.h" #include +#include #include #include "tensorflow/core/lib/random/philox_random.h" @@ -36,7 +37,7 @@ float LeftProbability(const Tensor& point, const Tensor& weight, float bias, // TODO(thomaswc): At some point we should consider // //learning/logistic/logodds-to-prob.h - return 1.0 / (1.0 + exp(-dot_product + bias)); + return 1.0 / (1.0 + std::exp(-dot_product + bias)); } float LeftProbabilityK(const Tensor& point, std::vector feature_set, @@ -54,7 +55,7 @@ float LeftProbabilityK(const Tensor& point, std::vector feature_set, // TODO(thomaswc): At some point we should consider // //learning/logistic/logodds-to-prob.h - return 1.0 / (1.0 + exp(-dot_product + bias)); + return 1.0 / (1.0 + std::exp(-dot_product + bias)); } void GetFeatureSet(int32 tree_num, int32 node_num, int32 random_seed,