sherjilozair / char-rnn-tensorflow

Multi-layer Recurrent Neural Networks (LSTM, RNN) for character-level language models in Python using Tensorflow
MIT License
2.64k stars 959 forks source link

Confusion in train.py #116

Open amy-cao opened 6 years ago

amy-cao commented 6 years ago

Hi, may I ask what does Line 115-117 do in train.py?
for i, (c, h) in enumerate(model.initial_state): feed[c] = state[i].c feed[h] = state[i].h In the previous line, doesn't the x and y has already assigned to 'feed' already? Thanks!