tensorflow提示出错module 'tensorflow.contrib' has no attribute 'bidirectional_rnn'

运行报错
 File "model.py", line 21, in __init__
    output, _, _ = tf.contrib.static_bidirectional_rnn(....)

AttributeError: module 'tensorflow.contrib' has no attribute 'bidirectional_rnn'  


解决方案:
tf.contrib.rnn.static_bidirectional_rnn()(失败)

tf.nn.bidirectional_dynamic_rnn()(成功)



阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页