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

This commit is contained in:
Wyatt Caldwell 2026-06-12 22:16:59 -07:00 committed by GitHub
parent 1365008348
commit 3a54597776
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -853,7 +853,7 @@ struct SD3CLIPEmbedder : public Conditioner {
} else {
chunk_hidden_states_l = sd::Tensor<float>::zeros({768, static_cast<int64_t>(chunk_len), 1});
if (chunk_idx == 0) {
pooled = sd::Tensor<float>::zeros({768, 1});
pooled_l = sd::Tensor<float>::zeros({768, 1});
}
}