模型开发接口
推理部署接口
API 相关说明
Send tensor to another process.
inp (Tensor) – Tensor to send.
Tensor
dest_rank (int) – Rank of destination process.
int
None.
Examples
if rank == 0: data = mge.tensor(1) # Tensor(1) F.distributed.remote_send(data, 1) # return None else: data = F.distributed.remote_recv(0) # Tensor(1)
previous
megengine.functional.distributed.collective_comm
next
megengine.functional.distributed.remote_recv