mirror of
https://github.com/trholding/llama2.c.git
synced 2026-02-06 11:26:53 +00:00
remove dagger in the eyeball
This commit is contained in:
parent
14275bd623
commit
288b3cec09
2
run.c
2
run.c
@ -245,7 +245,7 @@ float* forward(Transformer* transformer, int token, int pos) {
|
||||
int head_size = dim / p->n_heads;
|
||||
|
||||
// copy the token embedding into x
|
||||
float* content_row = &(w->token_embedding_table[token * dim]);
|
||||
float* content_row = w->token_embedding_table + token * dim;
|
||||
memcpy(x, content_row, dim*sizeof(*x));
|
||||
|
||||
// forward all the layers
|
||||
|
||||
Loading…
Reference in New Issue
Block a user