Missing positional arguments when try to use multiple GPUs with accelerator
First time using accelerator and notebook_launcher.I have 2 GPUs in the desktop.When I do this:notebook_launcher(training_process, (train_loader, val_loader), num_processes=1)→ working great on my CPU.Then I try this:notebook_launcher(training_process, (train_loader, val_loader), num_processes=2)Got error message: TypeError: training_process() missing 2 required positional arguments: ‘train_loader’ and ‘val_loader’Did I miss something? Plz point me a direction to resolve this… Thanks.
2021-05-11T13:04:10Z
That’s because those args are not passed in this caseWill send a PR today to fix this!
2021-05-11T13:33:30Z
Thanks for the explanation.
2021-05-11T13:50:47Z
Here isthe PRwith the fix!
2021-05-11T14:47:21Z
Thanks for the quick fix!