Skip to content

Conversation

@tchaton
Copy link
Contributor

@tchaton tchaton commented Mar 2, 2021

What does this PR do?

Fixes #<issue_number>

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?

Make sure you had fun coding 🙃

@tchaton tchaton self-assigned this Mar 2, 2021
@tchaton tchaton added the bug Something isn't working label Mar 2, 2021
@tchaton tchaton added this to the 1.2.x milestone Mar 2, 2021
@tchaton tchaton requested review from Borda and carmocca as code owners March 2, 2021 11:01
@tchaton tchaton enabled auto-merge (squash) March 2, 2021 11:01
@codecov
Copy link

codecov bot commented Mar 2, 2021

Codecov Report

Merging #6296 (34ceeb7) into master (8001987) will decrease coverage by 0%.
The diff coverage is 0%.

@@          Coverage Diff           @@
##           master   #6296   +/-   ##
======================================
- Coverage      93%     93%   -0%     
======================================
  Files         160     160           
  Lines       11397   11399    +2     
======================================
- Hits        10638   10609   -29     
- Misses        759     790   +31     

Comment on lines +49 to +52
# todo: Add support for backward with all_gather
if torch.distributed.is_initialized():
return xm.all_gather(tensor, group=group, sync_grads=sync_grads)
return tensor
Copy link
Contributor

Choose a reason for hiding this comment

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

Code cov complaining about no test, probably want to add one to make sure this case is covered in single TPU!

Copy link
Contributor Author

@tchaton tchaton Mar 3, 2021

Choose a reason for hiding this comment

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

The test updates cover this part but coverage is currently not supported for TPU.

@mergify mergify bot added the has conflicts label Mar 2, 2021
@mergify mergify bot removed the has conflicts label Mar 2, 2021
@Borda
Copy link
Collaborator

Borda commented Mar 2, 2021

can we add a test for it?

@tchaton tchaton merged commit 484dce1 into master Mar 3, 2021
@tchaton tchaton deleted the bugfix_5181 branch March 3, 2021 13:54
@tchaton tchaton mentioned this pull request Mar 8, 2021
tchaton added a commit that referenced this pull request Mar 9, 2021
…6296)

* resolve an issue with TPU

* update

* add changelog
Borda pushed a commit that referenced this pull request Mar 9, 2021
…6296)

* resolve an issue with TPU

* update

* add changelog
tchaton added a commit that referenced this pull request Mar 9, 2021
…6296)

* resolve an issue with TPU

* update

* add changelog
tchaton added a commit that referenced this pull request Mar 9, 2021
…6296)

* resolve an issue with TPU

* update

* add changelog
lexierule pushed a commit that referenced this pull request Mar 9, 2021
…6296)

* resolve an issue with TPU

* update

* add changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants