Skip to content

Commit e78ca2e

Browse files
committed
tests: init gf and filter out fusion tests for support mode
1 parent cf26680 commit e78ca2e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test-backend-ops.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,13 +1454,20 @@ struct test_case {
14541454
ggml_context_ptr ctx(ggml_init(params)); // smart ptr
14551455
GGML_ASSERT(ctx);
14561456

1457+
gf = ggml_new_graph_custom(ctx.get(), graph_nodes, false);
1458+
14571459
ggml_tensor * out = build_graph(ctx.get());
14581460
current_op_name = op_desc(out);
14591461

14601462
if (!matches_filter(out, op_names_filter)) {
14611463
return true;
14621464
}
14631465

1466+
// Filter out fusion tests in support mode
1467+
if (run_whole_graph()) {
1468+
return true;
1469+
}
1470+
14641471
bool supported = ggml_backend_supports_op(backend, out);
14651472

14661473
std::string device_desc = ggml_backend_dev_description(ggml_backend_get_device(backend));

0 commit comments

Comments
 (0)