Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Oct 2, 2023
1 parent 5306fc1 commit cd70333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/utils/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def _gpu_gather_one(tensor):
tensor = tensor.contiguous()

if state.backend is not None and state.backend != "gloo":
# We use `zeros` as `all_gather_into_tensor` slightly
# We use `empty` as `all_gather_into_tensor` slightly
# differs from `all_gather` for better efficiency,
# and we rely on the number of items in the tensor
# rather than its direct shape
Expand Down

0 comments on commit cd70333

Please sign in to comment.