mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 11:26:34 +00:00
fixed wtype issue; input images can only be 1 because issue with transformer when batch size > 1 (to be investigated)
This commit is contained in:
1 parent
807c340118
commit
5a13b48b6e
4 files changed
+83
-91
No files matched your search
+4
-5
@@ -651,19 +651,18 @@ struct GGMLModule {
|
||||
ggml_backend_metal_set_n_cb(backend, n_threads);
|
||||
}
|
||||
#endif
|
||||
printf("about to do ggml_backend_graph_compute \n");
|
||||
ggml_backend_graph_compute(backend, gf);
|
||||
|
||||
#ifdef GGML_PERF
|
||||
ggml_graph_print(gf);
|
||||
#endif
|
||||
if (output != NULL)
|
||||
print_ggml_tensor(output, true, "output_before_get");
|
||||
// if (output != NULL)
|
||||
// print_ggml_tensor(output, true, "output_before_get");
|
||||
if (output != NULL) {
|
||||
ggml_backend_tensor_get_and_sync(backend, gf->nodes[gf->n_nodes - 1], output->data, 0, ggml_nbytes(output));
|
||||
}
|
||||
if (output != NULL)
|
||||
print_ggml_tensor(output, true, "output_get");
|
||||
// if (output != NULL)
|
||||
// print_ggml_tensor(output, true, "output_get");
|
||||
}
|
||||
|
||||
void free_compute_buffer() {
|
||||
|
||||
Reference in new issue
Block a user