我刚刚在一个新系统上安装了带有pip的tensorflow-gpu (很明显,在安装了cuda和cudnn之后)。
不幸的是,我的代码(在cpu上很好地使用tensorflow 0.12),现在抛出
AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'stack_bidirectional_dynamic_rnn'当试图调用tf.contrib.rnn.stack_bidirectional_dynamic_rnn时。
此外,该函数存在于/path/to/python3.5/dist-packages/tensorflow/contrib/rnn/python/ops/rnn.py中,似乎是在.../tensorflow/contrib/rnn/__init__.py中导入的。
有什么想法吗?
P.S.:降级至0.12 (pip install tensorflow-gpu==0.12)解决了我的问题,但这有点令人失望:/
发布于 2017-02-19 02:12:30
哦,这是tensorflow代码中的一个错误。真对不起。请在这里添加一个条目,列出@@stack_bidirectional_rnn 这里,以便公开stack_bidirectional_rnn。马上就修好。如果您想要跟踪进度,请随时打开我们页面上的github问题,并在此进行CC调试。
https://stackoverflow.com/questions/42253032
复制相似问题