remove dagger in the eyeball

This commit is contained in:
Andrej Karpathy 2023-08-21 04:47:49 +00:00
parent 14275bd623
commit 288b3cec09

2
run.c
View File

@ -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