File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 65
65
// ggml_set_f32(a, 3.0f);
66
66
// ggml_set_f32(b, 4.0f);
67
67
//
68
- // const int n_threads = 1 ;
69
- // struct ggml_graph_compute_plan plan = ggml_graph_compute_make_plan(&gf, n_threads);
70
- // if (plan .work_size > 0) {
71
- // plan .work_data = malloc(plan .work_size);
72
- // GGML_ASSERT(plan .work_data);
68
+ // struct ggml_cplan pf = ggml_graph_compute_make_plan(&gf, n_threads) ;
69
+ //
70
+ // if (pf .work_size > 0) {
71
+ // pf .work_data = malloc(pf .work_size);
72
+ // GGML_ASSERT(pf .work_data);
73
73
// }
74
- // ggml_graph_compute(&plan, &gf);
75
- // if (plan.work_data) {
76
- // free(plan.work_data);
74
+ //
75
+ // ggml_graph_compute(&gf, &pf);
76
+ //
77
+ // if (pf.work_data) {
78
+ // free(pf.work_data);
77
79
// }
78
80
//
79
81
// printf("f = %f\n", ggml_get_f32_1d(f, 0));
You can’t perform that action at this time.
0 commit comments