bi-att-flow
bi-att-flow copied to clipboard
ImportError: cannot import name 'bidirectional_rnn'
File "/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/local/Cellar/python/3.6.4_4/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/srijanr/fyp17/Question-Answering/Allanai-fyp/bi-att-flow/basic/cli.py", line 5, in
What can be the solution for it?
Try
from tensorflow.python.ops.rnn import static_bidirectional_rnn as _bidirectional_rnn
You can run this branch for the newer version of tensorflow (all errors have been fixed): https://github.com/Vimos/bi-att-flow/tree/tf1.8