问题:
cell_fw = tf.contrib.rnn.LSTMCell(self.u)
报错module “tf.contrib.rnn” has no attribute 'LSTMCell‘
解决办法:
更新tensorflow到最新版本即可。
更新方法:
先激活tensorflow环境:activate tensorflow
然后
cpu使用命令:pip install --upgrade --ignore-installed tensorflow
gpu使用命令:pip install --upgrade --ignore-installed tensorflow-gpu
问题解决。