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 93bdbc6Copy full SHA for 93bdbc6
ggml/src/ggml-vulkan/vulkan-shaders/tanh.comp
@@ -16,6 +16,6 @@ void main() {
16
if (i >= p.KX) {
17
return;
18
}
19
-
20
- data_d[i] = D_TYPE(tanh(data_a[i]));
+ float th = tanh(data_a[i]);
+ data_d[i] = D_TYPE(th==th ? th : sign(data_a[i]));
21
0 commit comments