Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name '_linear' #126

Open
dsli208 opened this issue Sep 17, 2021 · 2 comments
Open

ImportError: cannot import name '_linear' #126

dsli208 opened this issue Sep 17, 2021 · 2 comments

Comments

@dsli208
Copy link

dsli208 commented Sep 17, 2021

I'm getting this error when trying to train given the instructions in the README

@javinator48
Copy link

Same here. Were you able to find a solution?

@saptarshi059
Copy link

Make the following changes to the code:

  1. 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
  1. In same file, change _linear to rnn_cell_impl._linear
  2. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants