未验证 提交 ffc86615 编写于 作者: C chengduo 提交者: GitHub

hot fix log (#14293)

test=develop
上级 65b61db1
...@@ -28,7 +28,7 @@ __device__ __forceinline__ double real_log(double x) { return log(x); } ...@@ -28,7 +28,7 @@ __device__ __forceinline__ double real_log(double x) { return log(x); }
__device__ __forceinline__ platform::float16 real_log( __device__ __forceinline__ platform::float16 real_log(
const platform::float16& val) { const platform::float16& val) {
return static_cast<platform::float16>(hlog(static_cast<half>(val))); return static_cast<platform::float16>(logf(static_cast<float>(val)));
} }
template <typename T> template <typename T>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册