Skip to content

Commit

Permalink
Bug fix for local run in TensorAllToAllValuesAwaitable (#2211)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #2211

bug fix when local workers is 1. we should take in variable ids instead of one with splits

Reviewed By: sarckk

Differential Revision: D59491275

fbshipit-source-id: dbe290b4ec250d8e04aa5dc93d5096d6c829d3ca
  • Loading branch information
Pratik Aher authored and facebook-github-bot committed Jul 8, 2024
1 parent 7777565 commit 9c74d8a
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 9c74d8a

Please sign in to comment.