We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ed389 commit 06d7014Copy full SHA for 06d7014
ggml/src/ggml-vulkan/vulkan-shaders/tanh.comp
@@ -16,6 +16,5 @@ void main() {
16
if (i >= p.KX) {
17
return;
18
}
19
-
20
- data_d[i] = D_TYPE(tanh(data_a[i]));
+ data_d[i] = D_TYPE(1. - 2. / (exp(2.*data_a[i]) + 1.));
21
0 commit comments