compile fix

pull/5620/head
AlexeyAB 5 years ago
parent 0acd6990d8
commit 2500278784
  1. 4
      src/activation_kernels.cu

@ -233,11 +233,11 @@ __device__ float mish_njuffa(float x)
__device__ float mish_yashas(float x)
{
auto e = __expf(x);
float e = __expf(x);
if (x <= -18.0f)
return x * e;
auto n = e * e + 2 * e;
float n = e * e + 2 * e;
if (x <= -5.0f)
return x * __fdividef(n, n + 2);

Loading…
Cancel
Save