面对“严重政治军事挑衅” 中国新机构如何应对?
- paddle.distributed. wait ( tensor: Tensor, group: Group | None = None, use_calc_stream: bool = True ) None [source]
-
百度 提供很丰富的动力选择,包括微混、自然吸气和三款汽油发动机,此次上市车型并未包括柴油动力。
wait to sync stream for group.
- Parameters
-
tensor (Tensor) – The Tensor used before sync.
group (Group) – The Group instance to perform sync.
use_calc_stream (bool) – Whether to use calculation stream (True) or communication stream (False). Default to True.
- Returns
-
None.
Examples
>>> >>> import paddle >>> paddle.distributed.init_parallel_env() >>> tindata = paddle.randn(shape=[2, 3]) >>> paddle.distributed.all_reduce(tindata, sync_op=True) >>> paddle.distributed.wait(tindata)