Tensorflowをバージョンアップすると、昔動いていたスクリプトが動かなくなったりします
1 2 | cell = tf.nn.rnn_cell.BasicLSTMCell(size, forget_bias=0.0) AttributeError: 'module' object has no attribute 'rnn_cell' |
こんなエラーとか。
こちらを参照し修正します。
これを
1 | tf.nn.rnn_cell.BasicLSTMCell |
これに変更
1 | tf.contrib.rnn.BasicLSTMCell |