Commit 6d149b65 authored by Bartlomiej Kocot's avatar Bartlomiej Kocot
Browse files

Remove not needed convert

parent fc870c69
...@@ -452,7 +452,7 @@ struct Sigmoid ...@@ -452,7 +452,7 @@ struct Sigmoid
is_same<T, int32_t>::value, is_same<T, int32_t>::value,
"Data type is not supported by this operation!"); "Data type is not supported by this operation!");
constexpr T one = type_convert<T>(1); constexpr T one = type_convert<T>(1);
y = one / (ck::type_convert<T>(one) + ck::math::exp(-x)); y = one / (one + ck::math::exp(-x));
}; };
}; };
......
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