fix bug in ggml_compute_forward_soft_max_back_f32 on DEBUG build

This commit is contained in:
xaedes 2023-05-14 20:55:24 +02:00
parent 69108167cd
commit 1f2b76de01
No known key found for this signature in database
GPG key ID: 30030EDD817EA2B1

4
ggml.c
View file

@ -10565,8 +10565,8 @@ static void ggml_compute_forward_soft_max_back_f32(
#ifndef NDEBUG
for (int i = 0; i < nc; ++i) {
//printf("p[%d] = %f\n", i, p[i]);
assert(!isnan(s0[i]));
assert(!isnan(s1[i]));
assert(!isnan(dy[i]));
assert(!isnan(y[i]));
}
#endif
// Jii = yi - yi*yi