Skip to content

Commit

Permalink
Compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyAB committed Jun 15, 2020
1 parent d724306 commit e08a818
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 @@ -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);

Expand Down

0 comments on commit e08a818

Please sign in to comment.