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

FileNotFoundError: Unsuccessful TensorSliceReader constructor #337

Open
Keszzz opened this issue Jun 5, 2023 · 1 comment
Open

FileNotFoundError: Unsuccessful TensorSliceReader constructor #337

Keszzz opened this issue Jun 5, 2023 · 1 comment

Comments

@Keszzz
Copy link

Keszzz commented Jun 5, 2023

I am encountering an error while loading the model.

model = Top2Vec(docs, embedding_model='universal-sentence-encoder-multilingual')

FileNotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for C:\Users\pkola\AppData\Local\Temp\tfhub_modules\26c892ffbc8d7b032f5a95f316e2841ed4f1608c\variables\variables You may be trying to load on a different device from the computational device. Consider setting the experimental_io_device option in tf.saved_model.LoadOptions to the io_device such as '/job:localhost'.

How can I fix it?

@Keszzz
Copy link
Author

Keszzz commented Jun 5, 2023

I have an update here. It seems to be a problem with the embedding method. I swapped to universal-sentence-encoder-multilingual-large and it works fine. It was hard to detect because the error didn’t indicate that and no changes in Top2Vec documentary noticed.

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