Update 16_nlp_with_rnns_and_attention.ipynb
Exercise question 9 solution Third version decoder embedding "input_din=(len(OUTPUT_CHARS) + 2)"main
parent
1e81324573
commit
70a515793c
|
@ -2063,7 +2063,7 @@
|
||||||
" len(INPUT_CHARS) + 1, encoder_embedding_size)(encoder_inputs)\n",
|
" len(INPUT_CHARS) + 1, encoder_embedding_size)(encoder_inputs)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"decoder_embedding_layer = keras.layers.Embedding(\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",
|
"decoder_embeddings = decoder_embedding_layer(decoder_inputs)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"encoder = keras.layers.LSTM(units, return_state=True)\n",
|
"encoder = keras.layers.LSTM(units, return_state=True)\n",
|
||||||
|
|
Loading…
Reference in New Issue