mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-05-31 22:40:42 +00:00
Vulkan: fix NaN in tanh.comp with AMD proprietary driver on Windows (llama/10723)
* Vulkan: fix NaN in tanh.comp * Faster NaN-free tanh
This commit is contained in:
parent
42a5245e6d
commit
0e4eb51283
@ -16,6 +16,5 @@ void main() {
|
|||||||
if (i >= p.KX) {
|
if (i >= p.KX) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
data_d[i] = D_TYPE(1. - 2. / (exp(2.*data_a[i]) + 1.));
|
||||||
data_d[i] = D_TYPE(tanh(data_a[i]));
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user