Skip to content

Commit

Permalink
faster logsigmoid
Browse files Browse the repository at this point in the history
format
  • Loading branch information
TE-andrewshin committed May 23, 2019
1 parent 3cb68ed commit df15127
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nbla/cuda/function/generic/log_sigmoid.cu
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <cmath>

namespace nbla {
NBLA_DEFINE_TRANSFORM_UNARY_CUDA(LogSigmoid,
std::log((T)1 / (std::exp(-x) + (T)1)),
NBLA_DEFINE_TRANSFORM_UNARY_CUDA(LogSigmoid, -std::log(std::exp(-x) + (T)1),
(T)1 / (std::exp(x) + (T)1));
}

0 comments on commit df15127

Please sign in to comment.