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

Lazy open files with cache #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

satyaog
Copy link
Collaborator

@satyaog satyaog commented Nov 26, 2020

As files can't be serialized, they need to be open after the serialization of the objects in a multiprocesses environment.

Supersedes #29

@satyaog satyaog changed the title Feature/cache optim Lazy open files with cache Nov 26, 2020
@satyaog satyaog changed the title Lazy open files with cache Lazy open files with cache Nov 26, 2020
@satyaog satyaog force-pushed the feature/cache_optim branch 3 times, most recently from 1cbc144 to 239ad2b Compare December 2, 2020 18:09
When Benzina needs to run in a multiprocesses environment

target needs to be an int and not an array of len 1 for it to be compatible with torch.nn.CrossEntropyLoss
@satyaog satyaog force-pushed the feature/cache_optim branch from 239ad2b to 5dc2023 Compare December 7, 2020 19:54
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

Successfully merging this pull request may close these issues.

1 participant