Skip to content

Commit bf29472

Browse files
committed
Fix warning
1 parent 45fafad commit bf29472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_toolbelt/utils/distributed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def all_gather(data: Any) -> List[Any]:
158158

159159
# serialized to a Tensor
160160
buffer = pickle.dumps(data)
161-
storage = torch.ByteStorage.from_buffer(buffer)
161+
storage = torch.UntypedStorage.from_buffer(buffer, dtype=torch.uint8)
162162
tensor = torch.ByteTensor(storage).to("cuda")
163163

164164
# obtain Tensor size of each rank

0 commit comments

Comments
 (0)