fix: fix the issue with dynamic linking

This commit is contained in:
leejet
2024-02-25 21:39:01 +08:00
parent 730585d515
commit 4a8190405a
7 changed files with 38 additions and 12 deletions

View File

@@ -388,11 +388,11 @@ struct ControlNet : public GGMLModule {
struct ggml_tensor* y = NULL) {
struct ggml_cgraph* gf = ggml_new_graph_custom(compute_ctx, CONTROL_NET_GRAPH_SIZE, false);
x = to_backend(x);
x = to_backend(x);
if (guided_hint_cached) {
hint = NULL;
} else {
hint = to_backend(hint);
hint = to_backend(hint);
}
context = to_backend(context);
y = to_backend(y);