在tensorfow V 1.4.0上出现以下错误,“ImportError:无法导入名称'rnn_cell_impl'”

问题描述 投票:0回答:1
~/anaconda3/lib/python3.6/site-packages/tflearn/layers/recurrent.py in <module>()
     12     # Fix for TF 1.1.0 and under
     13     from tensorflow.contrib.rnn.python.ops.core_rnn import static_rnn as _rnn, static_bidirectional_rnn as _brnn
---> 14     from tensorflow.python.ops.rnn import rnn_cell_impl as _rnn_cell, dynamic_rnn as _drnn
     15     from tensorflow.contrib.rnn.python.ops import core_rnn_cell
     16 

ImportError: cannot import name 'rnn_cell_impl'

得到以下错误。 TF 1.4版。

python tensorflow tflearn
1个回答
0
投票

也发布你的代码。尝试以下方式,

from tensorflow.python.ops import rnn_cell_impl
© www.soinside.com 2019 - 2024. All rights reserved.