batched : fix n_seq_id
This commit is contained in:
parent
7e48e21b1f
commit
0d96efabb5
1 changed files with 5 additions and 4 deletions
|
@ -108,7 +108,8 @@ int main(int argc, char ** argv) {
|
||||||
for (int32_t i = 0; i < batch.n_tokens; i++) {
|
for (int32_t i = 0; i < batch.n_tokens; i++) {
|
||||||
batch.token[i] = tokens_list[i];
|
batch.token[i] = tokens_list[i];
|
||||||
batch.pos[i] = i;
|
batch.pos[i] = i;
|
||||||
batch.seq_id[i] = 0;
|
batch.n_seq_id[i] = 1;
|
||||||
|
batch.seq_id[i][0] = 0;
|
||||||
batch.logits[i] = false;
|
batch.logits[i] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue