Skip to content

Conversation

@awaelchli
Copy link
Contributor

@awaelchli awaelchli commented Dec 20, 2020

Fixes #5197

it looks like this import error is caused in pytorch < 1.7

@awaelchli awaelchli added bug Something isn't working priority: 0 High priority task labels Dec 20, 2020
@awaelchli awaelchli added this to the 1.1.x milestone Dec 20, 2020
@awaelchli awaelchli changed the title remove unused rpc import in modelcheckpoint remove unused rpc import in modelcheckpoint causing import error Dec 20, 2020
@awaelchli awaelchli added the checkpointing Related to checkpointing label Dec 20, 2020
@codecov
Copy link

codecov bot commented Dec 20, 2020

Codecov Report

Merging #5198 (8854f3c) into master (8ad7214) will decrease coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #5198   +/-   ##
======================================
- Coverage      93%     93%   -0%     
======================================
  Files         134     134           
  Lines        9933    9932    -1     
======================================
- Hits         9247    9246    -1     
  Misses        686     686           

@Borda
Copy link
Collaborator

Borda commented Dec 20, 2020

Can we clean all imports in this subpackage with isort?

@awaelchli
Copy link
Contributor Author

ok but it didn't really change anything :)

@Borda
Copy link
Collaborator

Borda commented Dec 20, 2020

ok but it didn't really change anything :)

well no we can remove this file from isort ignore so no one in the future will mess with imports here :]

@Borda
Copy link
Collaborator

Borda commented Dec 20, 2020

@awaelchli in fact we shall not ignore these :D
https://github.com/PyTorchLightning/pytorch-lightning/blob/618580b4200e90b0acbb5f847865e0e9c02adec3/setup.cfg#L70

will be reflected #5201 (this goes for 1.2)

@awaelchli
Copy link
Contributor Author

ok is it good now?

@Borda
Copy link
Collaborator

Borda commented Dec 20, 2020

for the isort you can use isort pytorch_lightning/callbacks/model_checkpoint.py --automatic

Copy link
Collaborator

@Borda Borda left a comment

Choose a reason for hiding this comment

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

lgtm

@Borda Borda merged commit bb6dfb6 into master Dec 21, 2020
@Borda Borda deleted the bugfix/unused-import branch December 21, 2020 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working checkpointing Related to checkpointing priority: 0 High priority task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImportError: cannot import name 'invoke_rpc_builtin' from 'torch.distributed'

4 participants