File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,8 @@ bool llama_batch_allocr::init(
157157 n_outputs += batch.logits [i] != 0 ;
158158 }
159159
160+ has_cpl = false ;
161+
160162 // determine coupled sequences
161163 // these are pairs of sequences that have at least one token in the input batch that is assigned to both of them
162164 for (int32_t i = 0 ; i < batch.n_tokens ; ++i) {
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ class llama_batch_allocr {
117117 using seq_cpl_t = std::vector<bool >;
118118
119119 // helper flag to quickly determine if there are any coupled sequences in the batch
120- bool has_cpl;
120+ bool has_cpl = false ;
121121
122122 std::vector<pos_set_t > seq_pos; // seq_pos[s]: the set of positions in sequence s
123123 std::vector<seq_cpl_t > seq_cpl; // seq_cpl[s0][s1]: if sequence s0 is coupled to sequence s1
You can’t perform that action at this time.
0 commit comments