Skip to content

Commit c1226d6

Browse files
committed
use new ggml_ext function names
1 parent a50e2ce commit c1226d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stable-diffusion.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ class StableDiffusionGGML {
12501250
return;
12511251
}
12521252

1253-
ggml_tensor_clamp(result, 0.0f, 1.0f);
1253+
ggml_ext_tensor_clamp_inplace(result, 0.0f, 1.0f);
12541254
uint32_t frames = 1;
12551255
if (ggml_n_dims(latents) == 4) {
12561256
frames = result->ne[2];
@@ -1262,12 +1262,12 @@ class StableDiffusionGGML {
12621262
images[i].width = result->ne[0];
12631263
images[i].height = result->ne[1];
12641264
images[i].channel = 3;
1265-
images[i].data = sd_tensor_to_image(result, i, ggml_n_dims(latents) == 4);
1265+
images[i].data = ggml_tensor_to_sd_image(result, i, ggml_n_dims(latents) == 4);
12661266
}
12671267

12681268
step_callback(step, frames, images, is_noisy);
12691269

1270-
ggml_tensor_scale(result, 0);
1270+
ggml_ext_tensor_scale_inplace(result, 0);
12711271
for (int i = 0; i < frames; i++) {
12721272
free(images[i].data);
12731273
}

0 commit comments

Comments
 (0)