You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Chapter-wise code/Code - PyTorch/7. Attention Models/2. Neural Text Summarization/1. Transformer Models/Attention Maths.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Attention Maths
2
2
3
+
## Basic Variables
4
+
3
5
```buildoutcfg
4
6
Q: Queries (embeddings of German words)
5
7
K: Keys (embeddings of English words)
@@ -8,16 +10,19 @@ D: Dimensionality of word embeddings
8
10
Lq: no. of. queries
9
11
Lk: no. of keys
10
12
11
-
```
13
+
dim[Q] = [Lq, D];
14
+
dim[K] = [Lk, D];
15
+
dim[V] = [Lk, D];
12
16
13
-
1. Input to attention: Q, K, V Often Vs are same as Ks.
0 commit comments