Skip to content

Commit 3654571

Browse files
authored
align formulas in notes with code (#605)
1 parent 67e0680 commit 3654571

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ch03/01_main-chapter-code/ch03.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,9 +797,9 @@
797797
"- Implementing the self-attention mechanism step by step, we will start by introducing the three training weight matrices $W_q$, $W_k$, and $W_v$\n",
798798
"- These three matrices are used to project the embedded input tokens, $x^{(i)}$, into query, key, and value vectors via matrix multiplication:\n",
799799
"\n",
800-
" - Query vector: $q^{(i)} = W_q \\,x^{(i)}$\n",
801-
" - Key vector: $k^{(i)} = W_k \\,x^{(i)}$\n",
802-
" - Value vector: $v^{(i)} = W_v \\,x^{(i)}$\n"
800+
" - Query vector: $q^{(i)} = x^{(i)}\\,W_q $\n",
801+
" - Key vector: $k^{(i)} = x^{(i)}\\,W_k $\n",
802+
" - Value vector: $v^{(i)} = x^{(i)}\\,W_v $\n"
803803
]
804804
},
805805
{

0 commit comments

Comments
 (0)