mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
Rename variable to context_length to make it easier on readers (#106)
* rename to context length * fix spacing
This commit is contained in:
committed by
GitHub
parent
a940373a14
commit
2de60d1bfb
@@ -1772,8 +1772,8 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"block_size = max_length\n",
|
||||
"pos_embedding_layer = torch.nn.Embedding(block_size, output_dim)"
|
||||
"context_length = max_length\n",
|
||||
"pos_embedding_layer = torch.nn.Embedding(context_length, output_dim)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1874,7 +1874,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.10.12"
|
||||
"version": "3.10.6"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Reference in New Issue
Block a user