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(
157
157
n_outputs += batch.logits [i] != 0 ;
158
158
}
159
159
160
+ has_cpl = false ;
161
+
160
162
// determine coupled sequences
161
163
// these are pairs of sequences that have at least one token in the input batch that is assigned to both of them
162
164
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 {
117
117
using seq_cpl_t = std::vector<bool >;
118
118
119
119
// helper flag to quickly determine if there are any coupled sequences in the batch
120
- bool has_cpl;
120
+ bool has_cpl = false ;
121
121
122
122
std::vector<pos_set_t > seq_pos; // seq_pos[s]: the set of positions in sequence s
123
123
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