Skip to content

Conversation

@pietern
Copy link
Contributor

@pietern pietern commented Apr 11, 2019

Stack:
    :black_circle:  #19147 Remove ProcessGroup::getGroupRank  💛

After #14809 was merged there is no longer a need for getGroupRank.
Every ProcessGroup object has its own rank and size fields which are
accurate for the global group as well as subgroups.

Strictly speaking removing a function in a minor version bump is a big
no-no, but I highly doubt this was ever used outside of
torch.distributed itself. This will result in a compile error for
folks who have subclassed the ProcessGroup class though.

If this is a concern we can delay merging until a later point in time,
but eventually this will need to be cleaned up.

Differential Revision: D14889736

Differential Revision: D14889736
Differential Version: 78975800
@pietern pietern added oncall: distributed Add this issue/PR to distributed oncall triage queue triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Apr 11, 2019
Copy link
Contributor

@mrshenli mrshenli left a comment

Choose a reason for hiding this comment

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

Test failure looks irrelevant:

Apr 11 05:59:22 ======================================================================
Apr 11 05:59:22 ERROR: test_module_copy_with_attributes (__main__.TestScript)
Apr 11 05:59:22 ----------------------------------------------------------------------
Apr 11 05:59:22 Traceback (most recent call last):
Apr 11 05:59:22   File "test_jit.py", line 3545, in test_module_copy_with_attributes
Apr 11 05:59:22     v = Vocabulary(list('uabcdefg'))
Apr 11 05:59:22   File "/opt/python/2.7/lib/python2.7/site-packages/torch/jit/__init__.py", line 987, in init_then_register
Apr 11 05:59:22     original_init(self, *args, **kwargs)
Apr 11 05:59:22   File "test_jit.py", line 3519, in __init__
Apr 11 05:59:22     super().__init__()
Apr 11 05:59:22 TypeError: super() takes at least 1 argument (0 given)
Apr 11 05:59:22 
Apr 11 05:59:22 ----------------------------------------------------------------------

@mrshenli
Copy link
Contributor

@pytorchbot rebase this please

@pietern
Copy link
Contributor Author

pietern commented Apr 11, 2019

The test failures were fixed by revert commit 5164622.

@pietern pietern deleted the export-D14889736 branch April 11, 2019 16:25
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in c1b92f5.

zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this pull request May 6, 2019
Summary:
Pull Request resolved: pytorch#19147

After pytorch#14809 was merged there is no longer a need for getGroupRank.
Every ProcessGroup object has its own rank and size fields which are
accurate for the global group as well as subgroups.

Strictly speaking removing a function in a minor version bump is a big
no-no, but I highly doubt this was ever used outside of
`torch.distributed` itself. This will result in a compile error for
folks who have subclassed the ProcessGroup class though.

If this is a concern we can delay merging until a later point in time,
but eventually this will need to be cleaned up.

Differential Revision: D14889736

fbshipit-source-id: 3846fe118b3265b50a10ab8b1c75425dad06932d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: distributed Add this issue/PR to distributed oncall triage queue triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants