This commit is contained in:
Calvin Laurenson 2024-06-15 19:30:43 -07:00
parent f9926746d9
commit 97b37313ac
No known key found for this signature in database
GPG key ID: 2265749925202DAD

View file

@ -1081,6 +1081,13 @@ struct test_sqrt : public test_case {
ggml_tensor * out = ggml_sqrt(ctx, a); ggml_tensor * out = ggml_sqrt(ctx, a);
return out; 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 // GGML_OP_CLAMP