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

Multi-GPU friendly data processing. #103

Open
wants to merge 6 commits into
base: development
Choose a base branch
from
Open

Conversation

marondeau-mila
Copy link
Collaborator

  • Split the download and the loading.
  • In general, separated the processing into functions that can be called independently
    • For example, to create the split once, and reload it as needed.
  • Also tried to do some light refactoring to simplify customization.

Also, class with only static methods should be replaced by module.
@@ -77,8 +75,16 @@ def evaluate(args, data_dir, hyper_params):
['architecture', 'batch_size', 'exp_name', 'early_stopping'],
hyper_params)

if torch.cuda.is_available():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jerpint / @plstcharles / @hbertrand : just a request for comment here - here we use CUDA_VISIBLE_DEVICE environment variable to control which gpu to use. Do you think this is clear enough?

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.

2 participants