bi-att-flow
bi-att-flow copied to clipboard
ImportError: cannot import name '_linear'
I'm getting this error when trying to train given the instructions in the README
Same here. Were you able to find a solution?
Make the following changes to the code:
- In nn.py in my/tensorflow add, replace
- from tensorflow.python.ops.rnn_cell import _linear with
- from tensorflow.python.ops import rnn_cell_impl
- In same file, change _linear to rnn_cell_impl._linear
- In rnn.py, change
- from tensorflow.python.ops.rnn import bidirectional_rnn as _bidirectional_rnn to
- from tensorflow.python.ops.rnn import static_bidirectional_rnn as _bidirectional_rnn