suriyadeepan / practical_seq2seq

A simple, minimal wrapper for tensorflow's seq2seq module, for experimenting with datasets rapidly
http://suriyadeepan.github.io/2016-12-31-practical-seq2seq/
GNU General Public License v3.0
570 stars 270 forks source link

'NoneType' object has no attribute 'update' #40

Open tangyudi opened 7 years ago

tangyudi commented 7 years ago

When I run the code self.decode_outputs, self.decode_states = tf.contrib.legacy_seq2seq.embedding_rnn_seq2seq(self.enc_ip,self.dec_ip, stacked_lstm, xvocab_size, yvocab_size, emb_dim) it occurs 'NoneType' object has no attribute 'update'. Thanks for help!

linzhp commented 7 years ago

This is due to a bug in tensorflow seq2seq module: https://stackoverflow.com/questions/44591282/error-when-running-tensorflow-sequence-to-sequence-tutorial

jerryjingli commented 7 years ago

How to fix this issue?
tensorflow.version
'1.1.0'

self.decode_outputs, self.decode_states = tf.contrib.legacy_seq2seq.embedding_rnn_seq2seq(self.enc_ip,self.dec_ip, stacked_lstm, xvocab_size, yvocab_size, emb_dim)

AttributeError: 'NoneType' object has no attribute 'update'

AaronTan120 commented 6 years ago

I am currently facing the same issue, has anyone found the fix for this yet?

kortatu commented 6 years ago

I have overcome this problem using tensorflow 1.0 (the bug affects tensorflow 1.1 )