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
Can't load Keras model with multiple MetaGraphs, can't pass tags #37068
Comments
@ravikyram outside of the model (which I don't believe the TensorFlow Hub team would have any control of), the issue doesn't involve TensorFlow Hub. Any model with multiple MetaGraphs (where |
I have tried on colab with TF version 1.15 , 2.2.0-dev20200226 and was able to reproduce the issue.Please, find the gist here. Thanks! |
You can load the module as a Keras layer to use it. Heres the gist. I was also able to lad the model using
|
Is there a way to load a model using |
Upgrade your tensorflow version to 2.0. |
It has been 29 days with no activity and the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you. |
Closing this issue as it has been inactive for 3 weeks. Please add additional comments for us to open this issue again. |
Describe the current behavior
When trying to load a saved model using
keras.models.load_model
, an error occurs stating thattf.saved_model.load requires a 'tags='
. There is also no way to pass tags through theload_model
function.Describe the expected behavior
Model should load.
Standalone code to reproduce the issue
With
"albert/"
being a path to this model locally: https://tfhub.dev/google/albert_xlarge/3:Error:
Other info / logs
The text was updated successfully, but these errors were encountered: