Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
BloodAxe committed May 4, 2023
1 parent 45fafad commit bf29472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_toolbelt/utils/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def all_gather(data: Any) -> List[Any]:

# serialized to a Tensor
buffer = pickle.dumps(data)
storage = torch.ByteStorage.from_buffer(buffer)
storage = torch.UntypedStorage.from_buffer(buffer, dtype=torch.uint8)
tensor = torch.ByteTensor(storage).to("cuda")

# obtain Tensor size of each rank
Expand Down

0 comments on commit bf29472

Please sign in to comment.