summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2024-02-25 12:09:09 +0200
committerGitHub <noreply@github.com>2024-02-25 12:09:09 +0200
commitab336a9d5e5352ecdcdf4c12d2d54cf4ef82ce31 (patch)
tree5694ecb0647b10a6377a273737b63bb025dc961d /tests
parent69917dfa55674c608360638bb4d6a12a315e2810 (diff)
code : normalize enum names (#5697)
* coda : normalize enum names ggml-ci * code : cont * code : cont
Diffstat (limited to 'tests')
-rw-r--r--tests/test-backend-ops.cpp4
-rw-r--r--tests/test-opt.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-backend-ops.cpp b/tests/test-backend-ops.cpp
index f8574588..24d12ef1 100644
--- a/tests/test-backend-ops.cpp
+++ b/tests/test-backend-ops.cpp
@@ -1264,7 +1264,7 @@ struct test_argsort : public test_case {
test_argsort(ggml_type type = GGML_TYPE_F32,
std::array<int64_t, 4> ne = {16, 10, 10, 10},
- ggml_sort_order order = GGML_SORT_ASC)
+ ggml_sort_order order = GGML_SORT_ORDER_ASC)
: type(type), ne(ne), order(order) {}
ggml_tensor * build_graph(ggml_context * ctx) override {
@@ -2116,7 +2116,7 @@ static bool test_backend(ggml_backend_t backend, test_mode mode, const char * op
test_cases.emplace_back(new test_concat(GGML_TYPE_F32));
test_cases.emplace_back(new test_concat(GGML_TYPE_I32));
- for (ggml_sort_order order : {GGML_SORT_ASC, GGML_SORT_DESC}) {
+ for (ggml_sort_order order : {GGML_SORT_ORDER_ASC, GGML_SORT_ORDER_DESC}) {
test_cases.emplace_back(new test_argsort(GGML_TYPE_F32, {8, 1, 1, 1}, order));
test_cases.emplace_back(new test_argsort(GGML_TYPE_F32, {16, 10, 10, 10}, order));
}
diff --git a/tests/test-opt.cpp b/tests/test-opt.cpp
index 2c9997fc..546ca230 100644
--- a/tests/test-opt.cpp
+++ b/tests/test-opt.cpp
@@ -118,7 +118,7 @@ int main(void) {
const float fe = ggml_get_f32_1d(e, 0);
printf("%s: e = %.4f\n", __func__, fe);
- struct ggml_opt_params opt_params = ggml_opt_default_params(GGML_OPT_ADAM);
+ struct ggml_opt_params opt_params = ggml_opt_default_params(GGML_OPT_TYPE_ADAM);
ggml_opt(ctx, opt_params, e);