mirror of https://github.com/AlexeyAB/darknet.git
Compile fix
This commit is contained in:
parent
d724306ee3
commit
e08a818d5f
|
@ -247,8 +247,8 @@ __device__ float mish_yashas(float x)
|
|||
|
||||
__device__ float mish_yashas2(float x)
|
||||
{
|
||||
auto e = __expf(x);
|
||||
auto n = e * e + 2 * e;
|
||||
float e = __expf(x);
|
||||
float n = e * e + 2 * e;
|
||||
if (x <= -0.6f)
|
||||
return x * __fdividef(n, n + 2);
|
||||
|
||||
|
|
Loading…
Reference in New Issue