[hotfix]fixed p2p process send stuck (#1181)

* [CLI] add CLI launcher

* Revert "[CLI] add CLI launcher"

This reverts commit df7e6506d4.

* [hotfix]fixed p2p process send stuck
This commit is contained in:
YuliangLiu0306 2022-06-28 14:41:11 +08:00 committed by GitHub
parent 1b657f9ce1
commit 26ba87272d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,8 @@ def process_object_to_send(object_send, scatter_gather_tensors):
send_split = _get_tensor_shape(tensor_send.shape, scatter_gather_tensors)[1]
if send_split:
object_send_list.append(split_tensor_into_1d_equal_chunks(tensor_send))
else:
object_send_list.append(tensor_send)
object_send = tuple(object_send_list)
return object_send