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

Update get_keras_embedding for tf2 #2729

Closed
wants to merge 1 commit into from

Conversation

themrzmaster
Copy link

importing direct from keras raises error

AttributeError: module 'tensorflow' has no attribute 'get_default_graph'

as recommended by the tf community, we should import keras as tensorflow.keras

@mpenkov
Copy link
Collaborator

mpenkov commented Jan 23, 2020

@themrzmaster Thank you for your contribution.

Please:

  1. Link to the recommendation from the TF community. It is unclear why the proposed method is an improvement.
  2. Make the CI tests under Travis pass. They fail with an ImportError.

@piskvorky
Copy link
Owner

Fixed in #2937, by moving the (trivial) get_keras_embedding to Wiki.

@piskvorky piskvorky closed this Oct 6, 2020
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

Successfully merging this pull request may close these issues.

3 participants