Commit af2004b5 authored by rocking's avatar rocking
Browse files

Use ck math version of exp

parent 0d02a5c7
......@@ -342,7 +342,7 @@ struct Swish
is_same<T, ck::half_t>::value,
"Data type is not supported by this operation!");
y = x / (ck::type_convert<T>(1) + exp(-beta_ * x));
y = x / (ck::type_convert<T>(1) + ck::math::exp(-beta_ * x));
};
float beta_ = 1.0f;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment