tf.nn,run_cell.BasicLSTMCell,DropoutWrapper,MultiRNNCell
AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'BasicLSTMCell'
报这个错是因为api变了,找了好久的源码才找到from tensorflow.contrib.rnn.python.ops.core_rnn_cell_impl import BasicLSTMCell,DropoutWrapper,MultiRNNCell导的包换成这个就行了还有一个module 'tensorflow.python.ops.nn' has no attribute 'seq2seq'能到这步就不介绍seq2swq了,大约就像翻译机一样的from tensorflow.contrib import seq2seq换成这个api就能解决,另外,里面的参数也要做相应的修改,否则还是会报错,具体怎么修改,看源码呗