module ‘tensorflow.compat.v1‘ has no attribute ‘contrib‘
1. AttributeError: module ‘tensorflow’ has no attribute ‘placeholder’
使用了这篇文章中的解决办法,发现又引入了下列问题。
2. AttributeError: module ‘tensorflow.compat.v1’ has no attribute ‘contrib’
lstm = tf.contrib.rnn.BasicLSTMCell(lstm_size)
drop = tf.contrib.rnn.DropoutWrapper(
原创
2020-10-13 11:07:04 ·
17002 阅读 ·
7 评论