practical_seq2seq icon indicating copy to clipboard operation
practical_seq2seq copied to clipboard

'NoneType' object has no attribute 'update'

Open tangyudi opened this issue 8 years ago • 4 comments

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!

tangyudi avatar Jul 14 '17 04:07 tangyudi

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

linzhp avatar Jul 26 '17 16:07 linzhp

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'

jerryjingli avatar Aug 09 '17 11:08 jerryjingli

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

AaronTan120 avatar Oct 05 '17 07:10 AaronTan120

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

kortatu avatar Feb 22 '18 14:02 kortatu