fix test
This commit is contained in:
parent
f9926746d9
commit
97b37313ac
1 changed files with 7 additions and 0 deletions
|
@ -1081,6 +1081,13 @@ struct test_sqrt : public test_case {
|
|||
ggml_tensor * out = ggml_sqrt(ctx, a);
|
||||
return out;
|
||||
}
|
||||
|
||||
void initialize_tensors(ggml_context * ctx) override {
|
||||
// fill with positive values
|
||||
for (ggml_tensor * t = ggml_get_first_tensor(ctx); t != NULL; t = ggml_get_next_tensor(ctx, t)) {
|
||||
init_tensor_uniform(t, 0.0f, 100.0f);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// GGML_OP_CLAMP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue