tighten abs error bounds for cross_entropy_loss in test-grad0

This commit is contained in:
xaedes 2023-07-03 18:35:11 +02:00
parent 24a4b099f3
commit 1065c3b7b9
No known key found for this signature in database
GPG key ID: 30030EDD817EA2B1

View file

@ -1386,7 +1386,7 @@ int main(int argc, const char ** argv) {
struct ggml_tensor * f = ggml_cross_entropy_loss(ctx0, x[0], x[1]); struct ggml_tensor * f = ggml_cross_entropy_loss(ctx0, x[0], x[1]);
check_gradient("cross_entropy_loss", ctx0, x, f, ndims, nargs, 1e-4f, 1e-1f, INFINITY); check_gradient("cross_entropy_loss", ctx0, x, f, ndims, nargs, 1e-4f, 1e-3f, INFINITY);
} }
} }