We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb3f19c commit b247581Copy full SHA for b247581
stable-diffusion.cpp
@@ -3222,8 +3222,8 @@ class StableDiffusionGGML {
3222
3223
struct ggml_tensor* hidden_states = cond_stage_model.text_model.forward(ctx, input_ids);
3224
3225
- struct ggml_cgraph* cond_graph = ggml_build_forward_ctx(ctx, hidden_states);
3226
- struct ggml_cplan cplan = ggml_graph_plan(cond_graph, n_threads);
+ struct ggml_cgraph cond_graph = ggml_build_forward(hidden_states);
+ struct ggml_cplan cplan = ggml_graph_plan(&cond_graph, n_threads);
3227
ctx_size += cplan.work_size;
3228
3229
ctx_size += ggml_used_mem(ctx) + ggml_used_mem_of_data(ctx);
0 commit comments