Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f9971da

Browse filesBrowse files
clee2000pytorchmergebot
authored andcommitted
Fix divergence between internal + external (#118509)
D53049807 and #118197 got out of sync somehow Fixing externally since I'm pretty sure the internal version is correct Pull Request resolved: #118509 Approved by: https://github.com/malfet
1 parent 04c1df6 commit f9971da
Copy full SHA for f9971da

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎torch/distributed/_state_dict_utils.py

Copy file name to clipboardExpand all lines: torch/distributed/_state_dict_utils.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ def dtensor_func(value, pg, device):
172172
device_mesh=value.device_mesh,
173173
placements=placements,
174174
)
175-
# Call `wait()` to force the tensor is synchronous with respect
175+
# Call `wait()` to force the tensor to be synchronous with respect
176176
# to the main stream.
177+
# See the discussion in https://github.com/pytorch/pytorch/pull/117799.
177178
return value.to_local().wait()
178179

179180
return _iterate_state_dict(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.