This repository was archived by the owner on Jul 7, 2023. It is now read-only.
Commit a80273f
Added checks for making sure the key and value depths are divisible by the number of attention heads when doing multihead attention.
PiperOrigin-RevId: 1620256151 parent 1b1d7ed commit a80273f
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
377 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
378 | 389 | | |
379 | 390 | | |
380 | 391 | | |
| |||
0 commit comments