Skip to content

Magnitude and DataLoader with workers #80

@davebulaval

Description

@davebulaval

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions