Skip to content

Commit

Permalink
compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyAB committed May 12, 2020
1 parent 0acd699 commit 2500278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/activation_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2500278

Please sign in to comment.