Commit 28450473 authored by Mostofa Patwary's avatar Mostofa Patwary
Browse files

addressed comments

parent c45109ed
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -45,7 +45,6 @@ def check_and_append_tensor_for_gather(group, rank, world_size, input_):
    torch.distributed.all_gather(input_list, first_dim, group=group)
    all_input_list = torch.cat(input_list, dim=0).contiguous()
    max_length = torch.max(all_input_list)
    min_length = torch.min(all_input_list)

    # if the size are different than the max, extend the tensor
    # accordingly