farizrahman4u / seq2seq

Sequence to Sequence Learning with Keras
GNU General Public License v2.0
3.17k stars 845 forks source link

when i run the Sampleseq2seq, i meet an issue named "UnboundLocalError" #255

Closed ty5491003 closed 6 years ago

ty5491003 commented 6 years ago

the error info as follows:

`Using TensorFlow backend. Traceback (most recent call last): File "C:/Users/ty/PycharmProjects/conala-baseline-master/preproc/seq2seq_model.py", line 4, in

model = SimpleSeq2Seq(input_dim=5, hidden_dim=10, output_length=8, output_dim=8) File "C:\Users\ty\AppData\Local\Programs\Python\Python35\lib\site-packages\seq2seq-1.0.0- py3.5.egg\seq2seq\models.py", line 81, in SimpleSeq2Seq File "C:\Users\ty\AppData\Local\Programs\Python\Python35\lib\site-packages\recurrentshop-1.0.0- py3.5.egg\recurrentshop\engine.py", line 476, in __call__ File "C:\Users\ty\AppData\Local\Programs\Python\Python35\lib\site-packages\recurrentshop-1.0.0- py3.5.egg\recurrentshop\engine.py", line 1022, in build File "C:\Users\ty\AppData\Local\Programs\Python\Python35\lib\site- packages\keras\engine\topology.py", line 545, in __call__ output = self.call(inputs, **kwargs) File "C:\Users\ty\AppData\Local\Programs\Python\Python35\lib\site-packages\keras\layers\core.py", line 112, in call return output UnboundLocalError: local variable 'output' referenced before assignment` who can help me, please!!!
ty5491003 commented 6 years ago

i just solved this issue.