From ffc866159fcdf23bc38ce00e9af84cd80fed26e9 Mon Sep 17 00:00:00 2001 From: chengduo Date: Wed, 7 Nov 2018 14:50:10 +0800 Subject: [PATCH] hot fix log (#14293) test=develop --- paddle/fluid/operators/math/cross_entropy.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/math/cross_entropy.cu b/paddle/fluid/operators/math/cross_entropy.cu index a651e0265a..cb200ec8d6 100644 --- a/paddle/fluid/operators/math/cross_entropy.cu +++ b/paddle/fluid/operators/math/cross_entropy.cu @@ -28,7 +28,7 @@ __device__ __forceinline__ double real_log(double x) { return log(x); } __device__ __forceinline__ platform::float16 real_log( const platform::float16& val) { - return static_cast(hlog(static_cast(val))); + return static_cast(logf(static_cast(val))); } template -- GitLab