mirror of https://github.com/hpcaitech/ColossalAI
[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
pull/1159/head
parent
1b657f9ce1
commit
26ba87272d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue