天天看點

成功解決AttributeError: module 'tensorflow.nn.rnn_cell' has no attribute 'linear'

解決問題

AttributeError: module 'tensorflow.nn.rnn_cell' has no attribute 'linear'

解決思路

屬性錯誤:子產品'tensorflow.nn.rnn_cell'沒有屬性'linear'

解決方法

TensorFlow更新導緻的錯誤,TensorFlow 1.0後與以前代碼不相容,是以要根據API去修改

參考文章:TF版本更新問題集合:成功解決由于不同的TensorFlow版本之間某些函數的用法引起的錯誤

https://yunyaniu.blog.csdn.net/article/details/88926446

繼續閱讀