fix: SD3 conditioning crash when clip_l text encoder is missing (#1638)

This commit is contained in:
Wyatt Caldwell authored and GitHub committed 2026-06-13 13:16:59 +08:00
1 parent 1365008348
commit 3a54597776
1 file changed
+1 -1
+1 -1
View File
@@ -853,7 +853,7 @@ struct SD3CLIPEmbedder : public Conditioner {
} else { } else {
chunk_hidden_states_l = sd::Tensor<float>::zeros({768, static_cast<int64_t>(chunk_len), 1}); chunk_hidden_states_l = sd::Tensor<float>::zeros({768, static_cast<int64_t>(chunk_len), 1});
if (chunk_idx == 0) { if (chunk_idx == 0) {
pooled = sd::Tensor<float>::zeros({768, 1}); pooled_l = sd::Tensor<float>::zeros({768, 1});
} }
} }