tests : better input range for unary operators
This commit is contained in:
parent
83c1171529
commit
dad7571ff2
|
|
@ -1919,8 +1919,7 @@ struct test_unary : public test_case {
|
||||||
|
|
||||||
void initialize_tensors(ggml_context * ctx) override {
|
void initialize_tensors(ggml_context * ctx) override {
|
||||||
for (ggml_tensor * t = ggml_get_first_tensor(ctx); t != NULL; t = ggml_get_next_tensor(ctx, t)) {
|
for (ggml_tensor * t = ggml_get_first_tensor(ctx); t != NULL; t = ggml_get_next_tensor(ctx, t)) {
|
||||||
// test extended range of values to check for NaNs in GELU
|
init_tensor_uniform(t, -10.f, 10.f);
|
||||||
init_tensor_uniform(t, -150.f, 150.f);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue