We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65b61db commit ffc8661Copy full SHA for ffc8661
paddle/fluid/operators/math/cross_entropy.cu
@@ -28,7 +28,7 @@ __device__ __forceinline__ double real_log(double x) { return log(x); }
28
29
__device__ __forceinline__ platform::float16 real_log(
30
const platform::float16& val) {
31
- return static_cast<platform::float16>(hlog(static_cast<half>(val)));
+ return static_cast<platform::float16>(logf(static_cast<float>(val)));
32
}
33
34
template <typename T>
0 commit comments