Skip to content

Commit eee1a0e

Browse files
qinfchollet
authored andcommitted
Update documentation on decoder sequence indexing. (keras-team#8187)
* Update documentation on decoder sequence indexing. * Correct relative order of decoder_input_data and decoder_target_data in comments.
1 parent 035c814 commit eee1a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/lstm_seq2seq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
for t, char in enumerate(input_text):
114114
encoder_input_data[i, t, input_token_index[char]] = 1.
115115
for t, char in enumerate(target_text):
116-
# decoder_target_data is ahead of decoder_target_data by one timestep
116+
# decoder_target_data is ahead of decoder_input_data by one timestep
117117
decoder_input_data[i, t, target_token_index[char]] = 1.
118118
if t > 0:
119119
# decoder_target_data will be ahead by one timestep

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy