Fix code comment: embed_dim -> d_out (#698)

This commit is contained in:
Sebastian Raschka
2025-06-22 16:36:39 -05:00
committed by GitHub
parent 01be5a42e4
commit d37ddb668a
3 changed files with 4 additions and 4 deletions

View File

@@ -352,7 +352,7 @@
" def __init__(self, d_in, d_out, num_heads, context_length, dropout=0.0, qkv_bias=False):\n",
" super().__init__()\n",
"\n",
" assert d_out % num_heads == 0, \"embed_dim is indivisible by num_heads\"\n",
" assert d_out % num_heads == 0, \"d_out is indivisible by num_heads\"\n",
"\n",
" self.num_heads = num_heads\n",
" self.context_length = context_length\n",
@@ -588,7 +588,7 @@
" def __init__(self, d_in, d_out, num_heads, context_length, dropout=0.0, qkv_bias=False):\n",
" super().__init__()\n",
"\n",
" assert d_out % num_heads == 0, \"embed_dim is indivisible by num_heads\"\n",
" assert d_out % num_heads == 0, \"d_out is indivisible by num_heads\"\n",
"\n",
" self.num_heads = num_heads\n",
" self.context_length = context_length\n",