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

hub.Module() fails in python3 with tensorflow>=1.8.0rc0 #33

Closed
andresusanopinto opened this issue Apr 17, 2018 · 4 comments
Closed

hub.Module() fails in python3 with tensorflow>=1.8.0rc0 #33

andresusanopinto opened this issue Apr 17, 2018 · 4 comments
Assignees

Comments

@andresusanopinto
Copy link
Contributor

This is due to "prepend_name_scope" failing silently when given a "bytes" instead of "string".

It fails with an error like:

WARNING:tensorflow:cannot use a string pattern on a bytes-like object
KeyError: "The name 'global_step:0' refers to a Tensor which does not exist. The operation, 'global_step', does not exist in the graph."
@andresusanopinto
Copy link
Contributor Author

andresusanopinto commented Apr 17, 2018

tf.compat.as_str is broken in 1.8.0rc0.. see tensorflow/tensorflow#18598.

@jpzhangvincent
Copy link

embed = hub.Module("https://tfhub.dev/google/universal-sentence-encoder/1") seems also fails to retrieve the model in my local machine: Windows10, tensorflow version 1.7. Before it works good and it can cache to the 'C:\Users.*\AppData\Local\Temp\tfhub_modules..." file

Got the error:
NotFoundError: NewRandomAccessFile failed to Create/Open:

@andresusanopinto
Copy link
Contributor Author

@jpzhangvincent that is unrelated with this issue. Please open a new one if that is something reproducible and not a sporadic failure.

@andresusanopinto
Copy link
Contributor Author

I will close this as the issue in tensorflow/tensorflow#18598 has been fixed and should be on the next 1.8 release candidate.

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

2 participants