Skip to content

Commit

Permalink
Bug fix for local run in TensorAllToAllValuesAwaitable
Browse files Browse the repository at this point in the history
Summary: bug fix when local workers is 1. we should take in variable ids instead of one with splits

Reviewed By: sarckk

Differential Revision: D59491275
  • Loading branch information
Pratik Aher authored and facebook-github-bot committed Jul 8, 2024
1 parent 7777565 commit b8daf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrec/distributed/dist_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,7 @@ def __init__(

self._dist_values: torch.Tensor
if self._workers == 1:
self._dist_values = input_splits
self._dist_values = input
return
else:
if input.dim() > 1:
Expand Down

0 comments on commit b8daf38

Please sign in to comment.