seq2seq_chatbot icon indicating copy to clipboard operation
seq2seq_chatbot copied to clipboard

AttributeError: module 'tensorflow.python.ops.rnn_cell_impl' has no attribute '_Linear'

Open fengdoudou1895 opened this issue 6 years ago • 3 comments

seq2seq.py的第15行 Linear = rnn_cell_impl._Linear # pylint: disable=protected-access,invalid-name

fengdoudou1895 avatar May 21 '18 13:05 fengdoudou1895

在文件前面粘贴下面代码 from tensorflow.contrib.rnn.python.ops import core_rnn_cell 然后 Linear =core_rnn_cell._Linear # pylint: disable=protected-access,invalid-name

yjyGo avatar Apr 01 '19 09:04 yjyGo

thanks,got it! @yjyGo

qinhuangdaoStation avatar Sep 14 '20 12:09 qinhuangdaoStation

非常感谢

fengdoudou1895 avatar Nov 19 '20 09:11 fengdoudou1895