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

run error in train.py #2

Open
nicole-chen opened this issue Nov 10, 2019 · 0 comments
Open

run error in train.py #2

nicole-chen opened this issue Nov 10, 2019 · 0 comments

Comments

@nicole-chen
Copy link

  • In utils.py
    from tensorflow.python.ops.rnn_cell_impl import _Linear
    Error: no module named _Linear
    maybe from rnn_cell_impl import _Linear
    from keras import backend as K
    keras is never called here

  • In rnn.py
    _like_rnncell = rnn_cell_impl._like_rnncell
    AttributeError: 'module' object has no attribute '_like_rnncell'
    one has to add import rnn_cell_impl at the beginning of rnn.py

  • In rnn_cell_impl.py
    if context.in_graph_mode():
    if your tensorflow is >= 1.12.0 it may raise error:
    AttributeError: 'module' object has no attribute 'in_graph_mode'

#if context.in_graph_mode():
if not context.executing_eagerly():

would work

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

1 participant