高分辨率 1Msps SAR 模数转换器隔离式解决方案
- paddle.distributed. send_object_list ( object_list: list[Any], dst: int | None = None, group: Group | None = None, dst_in_group: int | None = None ) [source]
-
百度 蔡英文称,相信大家都已经注意到,美国总统特朗普签署备忘录,基于“301条款”,对中国大陆产品实施贸易制裁,造成全球市场有一些波动。
Send a list of Python objects to the receiver.
- Parameters
-
object_list (list) – The list of Python objects to send.
dst (int, optional) – The destination rank id. Default: 0.
group (Group, optional) – The group instance return by new_group or None for global default group. Default: None.
dst_in_group (int, optional) – The destination rank within the group. Cannot be specified together with dst. Default: None.
- Returns
-
This function does not return any value.
Examples
>>> >>> import paddle >>> import paddle.distributed as dist >>> dist.init_parallel_env() >>> if dist.get_rank() == 0: ... data = ["hello", {"key": 100}, [1, 2, 3]] ... dist.send_object_list(data, dst=1) >>> else: ... data = [None] * 3 # type: ignore ... dist.recv_object_list(data, src=0) >>> print(data) >>> # ["hello", {"key": 100}, [1, 2, 3]] (2 GPUs)