module 'tensorflow.python.ops.nn' has no attribute 'seq2seq' ‘rnn_cell’

在使用google的tensorflow遇到的tf.nn没有属性sequence_loss问题

tf.nn.seq2seq.sequence_loss_by_example
	to
	tf.contrib.legacy_seq2seq.sequence_loss_by_example

tf.nn.rnn_cell.
	to
	tf.contrib.rnn.

	1.0修改了很多地方,错误可取官网搜索。

 

posted @ 2017-11-30 09:00  zhenzhen78  阅读(3856)  评论(0编辑  收藏  举报