Skip to content

Commit

Permalink
Merge pull request #156 from sony/fix/20190523-logsigmoid-faster
Browse files Browse the repository at this point in the history
[Fix] log_sigmoid computation
  • Loading branch information
TakuyaNarihira authored May 24, 2019
2 parents 3cb68ed + df15127 commit 4af072c
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 4af072c

Please sign in to comment.