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

Magnitude and DataLoader with workers #80

Open
davebulaval opened this issue Nov 16, 2020 · 0 comments
Open

Magnitude and DataLoader with workers #80

davebulaval opened this issue Nov 16, 2020 · 0 comments

Comments

@davebulaval
Copy link

It seems like using Magnitude into a Torch DataLoader makes the database fail when using more than one worker.

The problem is, I'm converting into embedding my dataset on running time with the DataLoader worker, but when I use more than one, the process fails with this error. Everything work well using only one, or in any other context.

    results = self._db().execute(search_query,
sqlite3.DatabaseError: database disk image is malformed

Since the DataLoader manages its own worker process, I cannot create every time a new magnitude object. Any ideas for a solution?

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