Multi-layer Recurrent Neural Networks (LSTM, RNN) for word-level language models in Python using TensorFlow.
1.31k
stars
495
forks
source link
Generating words from trained RNN model: “Variable already exists, disallowed. Did you mean to set reuse=True in VarScope? ” #63
Open
sunsidazzz opened 6 years ago
So I am trying to implemented this RNN word generator model in jupytor notebook. When I was trying to use the trained model to generate some words:
It works for the first time, but if I run the code again there is an error:
Right now I have to shut down the ipynb file then run the code to get a new sample. Any idea to change the code to avoid this situation?