Skip to content

Commit 8c6caf0

Browse files
committed
Fix formatting
1 parent af4f83f commit 8c6caf0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clip.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -711,12 +711,12 @@ class CLIPTextModel : public GGMLBlock {
711711
if (return_pooled) {
712712
auto text_projection = params["text_projection"];
713713
ggml_tensor* pooled = ggml_view_1d(ctx, x, hidden_size, x->nb[1] * max_token_idx);
714-
if(text_projection != NULL){
714+
if (text_projection != NULL) {
715715
pooled = ggml_mul_mat(ctx, ggml_cont(ctx, ggml_transpose(ctx, text_projection)), pooled);
716-
}else{
716+
} else {
717717
LOG_DEBUG("Missing text_projection matrix, assuming identity...");
718718
}
719-
return pooled;
719+
return pooled; // [hidden_size, 1, 1]
720720
}
721721

722722
return x; // [N, n_token, hidden_size]

conditioner.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ struct FluxCLIPEmbedder : public Conditioner {
10651065
return {{clip_l_tokens, clip_l_weights}, {t5_tokens, t5_weights}};
10661066
}
10671067

1068-
SDCondition get_learned_condition_common(ggml_context* work_ctx,
1068+
SDCondition get_learned_condition_common(ggml_context* work_ctx,
10691069
int n_threads,
10701070
std::vector<std::pair<std::vector<int>, std::vector<float>>> token_and_weights,
10711071
int clip_skip,

0 commit comments

Comments
 (0)