stanford-tensorflow-tutorials icon indicating copy to clipboard operation
stanford-tensorflow-tutorials copied to clipboard

AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'seq2seq'

Open yinseng2001 opened this issue 7 years ago • 3 comments

self.outputs, self.losses = tf.nn.seq2seq.model_with_buckets( self.encoder_inputs, self.decoder_inputs, self.targets, self.decoder_masks, config.BUCKETS, lambda x, y: _seq2seq_f(x, y, False), softmax_loss_function=self.softmax_loss_function)

what function we can replace with tf.nn.seq2seq.model_with_buckets? thanks

yinseng2001 avatar Sep 06 '17 02:09 yinseng2001

try this tf.contrib.legacy_seq2seq.model_with_buckets

yinseng2001 avatar Sep 06 '17 06:09 yinseng2001

but then it is shoeing TypeError: model_with_buckets() got an unexpected keyword argument 'num_encoder_symbols' this error

PoojaPatel05 avatar Nov 14 '17 07:11 PoojaPatel05

Try this for TypeErrors: https://github.com/tensorflow/models/issues/1736

ghost avatar Mar 24 '18 09:03 ghost