mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-08-15 04:01:44 +00:00
Update ch03.ipynb
This commit is contained in:
parent
727615423d
commit
c518adb0b7
@ -306,7 +306,7 @@
|
|||||||
"attn_weights_2 = torch.softmax(attn_scores_2, dim=0)\n",
|
"attn_weights_2 = torch.softmax(attn_scores_2, dim=0)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(\"Attention weights:\", attn_weights_2)\n",
|
"print(\"Attention weights:\", attn_weights_2)\n",
|
||||||
"print(\"Sum:\", attn_weights.sum())"
|
"print(\"Sum:\", attn_weights_2.sum())"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user