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

[DTensor] Remove compute_local_offset from _utils.py and replace current usage with new API #108965

Closed
wants to merge 1 commit into from

Conversation

wz337
Copy link
Contributor

@wz337 wz337 commented Sep 10, 2023

Summary:
This diff:

  • Remove compute_local_offset from _utils.py
  • Replace current usage with new API compute_local_shape_and_global_offset.

More context of why we introduced the new API:
#108547

Test Plan: CI

Differential Revision: D49130050

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 10, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/108965

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (3 Unrelated Failures)

As of commit 393b9c6 with merge base 3b265e0 (image):

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 10, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: wz337 / name: Iris Z (393b9c6)

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49130050

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49130050

…ent usage with new API (pytorch#108965)

Summary:

This diff:
- Remove compute_local_offset from _utils.py
- Replace current usage with new API compute_local_shape_and_global_offset.

More context of why we introduced the new API:
pytorch#108547

Test Plan: CI

Differential Revision: D49130050
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49130050

Copy link
Contributor

@fduwjj fduwjj left a comment

Choose a reason for hiding this comment

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

LGTM thanks for cleaning this up.

@fduwjj
Copy link
Contributor

fduwjj commented Sep 11, 2023

Also please make sure all CI passed.

@wz337
Copy link
Contributor Author

wz337 commented Sep 12, 2023

@pytorchmergebot merge -i

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 12, 2023
@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: This PR has internal changes and must be landed via Phabricator

Details for Dev Infra team Raised by workflow job

@wz337
Copy link
Contributor Author

wz337 commented Sep 12, 2023

Closing and replacing it with #109096

@wz337 wz337 closed this Sep 12, 2023
pytorchmergebot pushed a commit that referenced this pull request Sep 12, 2023
Separating internal changes with OSS changes. This PR contains removing the compute_local_offset from the OSS directory only.

This replaces #108965
Pull Request resolved: #109096
Approved by: https://github.com/wanchaol, https://github.com/fduwjj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request fb-exported topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants