Skip to content

Commit

Permalink
Change Embedding's input_dim argument
Browse files Browse the repository at this point in the history
Wrong argument for the decoder's embedding layer.
  • Loading branch information
ibeauregard committed Oct 20, 2020
1 parent 215a7e0 commit 74afde5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 16_nlp_with_rnns_and_attention.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3286,7 +3286,7 @@
" len(INPUT_CHARS) + 1, encoder_embedding_size)(encoder_inputs)\n",
"\n",
"decoder_embedding_layer = keras.layers.Embedding(\n",
" len(INPUT_CHARS) + 2, decoder_embedding_size)\n",
" len(OUTPUT_CHARS) + 2, decoder_embedding_size)\n",
"decoder_embeddings = decoder_embedding_layer(decoder_inputs)\n",
"\n",
"encoder = keras.layers.LSTM(units, return_state=True)\n",
Expand Down Expand Up @@ -3582,7 +3582,7 @@
" len(INPUT_CHARS) + 1, encoder_embedding_size)(encoder_inputs)\n",
"\n",
"decoder_embedding_layer = keras.layers.Embedding(\n",
" len(INPUT_CHARS) + 2, decoder_embedding_size)\n",
" len(OUTPUT_CHARS) + 2, decoder_embedding_size)\n",
"decoder_embeddings = decoder_embedding_layer(decoder_inputs)\n",
"\n",
"encoder = keras.layers.LSTM(units, return_state=True)\n",
Expand Down

0 comments on commit 74afde5

Please sign in to comment.