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

ref: move backends back to individual files (1/5) (ddp_cpu) #3712

Merged
merged 8 commits into from
Sep 29, 2020
Merged

Conversation

williamFalcon
Copy link
Contributor

@williamFalcon williamFalcon commented Sep 29, 2020

too complicated to understand and debug the merged backends.

cc @ananthsub

Also freebie @edenafek, raises exception when no valid backend is passed in

@williamFalcon williamFalcon changed the title ref: move backends back to individual files ref: move backends back to individual files (1/5) (ddp_cpu) Sep 29, 2020
@mergify mergify bot requested a review from a team September 29, 2020 01:34
@pep8speaks
Copy link

pep8speaks commented Sep 29, 2020

Hello @williamFalcon! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-09-29 05:41:49 UTC


def get_device_ids(self):

class DDPCPUSpawnBackend(Accelerator):
Copy link
Contributor

@ananthsub ananthsub Sep 29, 2020

Choose a reason for hiding this comment

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

naming nit: if run with torchelastic, then torchelastic does the spawn, not the backend. also this doesn't resolve the bug here: https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/accelerators/accelerator_connector.py#L142-L143

we basically need a DDPCPUBackend which takes torchelastic_ddp as a mode

@codecov
Copy link

codecov bot commented Sep 29, 2020

Codecov Report

Merging #3712 into master will decrease coverage by 1%.
The diff coverage is 47%.

@@          Coverage Diff           @@
##           master   #3712   +/-   ##
======================================
- Coverage      91%     90%   -1%     
======================================
  Files         110     110           
  Lines        8206    8303   +97     
======================================
+ Hits         7463    7507   +44     
- Misses        743     796   +53     

@williamFalcon williamFalcon merged commit c41ea86 into master Sep 29, 2020
@Borda Borda deleted the ube branch September 30, 2020 10:55
@Borda Borda added the refactor label Oct 2, 2020
@Borda Borda added this to the 0.10.0 milestone Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants