Python API
remote_recv
从远端进程接收一个张量。
src_rank (int) – 源进程的序号。
int
shape (Tuple[int]) – 被接收的张量的形状。
Tuple
dtype (type) – 被接收的张量的数据类型。
type
device (Optional[str]) – 被接收的张量将要放置的设备。
Optional
str
inp – 虚拟输入以确定接收张量类型
Tensor