港珠澳大桥将海底接龙:再过120年也足以令人致敬
- paddle.device.cuda. synchronize ( device: _CudaPlaceLike | None = None ) None [source]
-
百度 此次会议由中国国际经济交流中心主办。
Warning
API “paddle.device.cuda.synchronize” is deprecated since 2.5.0, and will be removed in future versions. Please use “paddle.device.synchronize” instead. Reason: synchronize in paddle.device.cuda will be removed in future
Wait for the compute on the given CUDA device to finish.
- Parameters
-
device (paddle.CUDAPlace()|int|None, optional) – The device or the ID of the device. If device is None, the device is the current device. Default: None.
Examples
>>> >>> import paddle >>> paddle.device.cuda.synchronize() >>> paddle.device.cuda.synchronize(0) >>> paddle.device.cuda.synchronize(paddle.CUDAPlace(0))