API 相关说明
Send tensor to another process.
inp (Tensor) – Tensor to send.
Tensor
dest_rank (int) – Rank of destination process.
int
None.
实际案例
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)
上一页
megengine.functional.distributed.broadcast
下一页
megengine.functional.distributed.remote_recv