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

Runtime Error #52

Open
vadimsheinin opened this issue Apr 9, 2019 · 3 comments
Open

Runtime Error #52

vadimsheinin opened this issue Apr 9, 2019 · 3 comments

Comments

@vadimsheinin
Copy link

I installed the code and tried it for some time. However, several days ago suddently it stopped working. I am getting the following error:
Done loading word embeddings.
Traceback (most recent call last):
File "demo.py", line 45, in
model = cm.CorefModel(config)
File "/Users/vadims/anaphora/e2e-coref-master/coref_model.py", line 58, in init
self.predictions, self.loss = self.get_predictions_and_loss(self.input_tensors)
File "/Users/vadims/anaphora/e2e-coref-master/coref_model.py", line 250, in get_predictions_and_loss
elmo_module = hub.Module("https://tfhub.dev/google/elmo/2")
File "/Users/vadims/anaconda/lib/python2.7/site-packages/tensorflow_hub/module.py", line 147, in init
self._spec = as_module_spec(spec)
File "/Users/vadims/anaconda/lib/python2.7/site-packages/tensorflow_hub/module.py", line 36, in as_module_spec
return load_module_spec(spec)
File "/Users/vadims/anaconda/lib/python2.7/site-packages/tensorflow_hub/module.py", line 61, in load_module_spec
return registry.loader(path)
File "/Users/vadims/anaconda/lib/python2.7/site-packages/tensorflow_hub/registry.py", line 45, in call
self._name, args, kwargs))
RuntimeError: Missing implementation that supports: loader(
('/var/folders/2g/b2mxd7dn23j_myf6hm3yfbzc0000gn/T/tfhub_modules/9bb74bc86f9caffc8c47dd7b33ec4bb354d9602d',), **{})

Any ideas?
Thanks.

@kentonl
Copy link
Owner

kentonl commented Apr 13, 2019

I just tried it with

tensorflow>1.13.1
tensorflow-hub>0.4.0

and the demo still works for at least those versions. Are you still having trouble running the code?

@mjj1094
Copy link

mjj1094 commented Jun 19, 2020

@kentonl
tensorflow-gpu 1.15.0
tensorflow-hub 0.8.0

the demo can not work for these version,can you show your precise version?

@mjj1094
Copy link

mjj1094 commented Jun 19, 2020

python demo.py final
Traceback (most recent call last):
File "demo.py", line 45, in
model = cm.CorefModel(config)
File "/data/private/mjj/project/coreference-resolution/e2e-coref/coref_model.py", line 58, in init
self.predictions, self.loss = self.get_predictions_and_loss(*self.input_tensors)
File "/data/private/mjj/project/coreference-resolution/e2e-coref/coref_model.py", line 250, in get_predictions_and_loss
elmo_module = hub.Module("https://tfhub.dev/google/elmo/2")
……
File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 110] Connection timed out>

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