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修改了很多地方,错误可取官网搜索。
原文地址:https://www.cnblogs.com/zhaooyw/p/7927373.html