湖南浏阳彩民喜中双色球大奖——新华网——湖南

paddle.device. synchronize ( device: PlaceLike | None = None ) None [source]
百度   飞机离最近的旧金山也有两个小时的路程,在降落旧金山之前,吴小波将患者身体放平,给他盖上了衣服保持体温,并将飞机上的简易氧气筒拿来对患者进行吸氧治疗。

Wait for the compute on the given device to finish.

Parameters

device (str|paddle.CUDAPlace(n)|paddle.XPUPlace(n)|paddle.CustomPlace(n)) – The device which want to wait for. If device is None, the device is the current device. Default: None. It can be gpu, gpu:x, xpu, xpu:x, custom_device, custom_device:x, where custom_device is the name of CustomDevice, where x is the index of the GPUs, XPUs. And it can be paddle.CUDAPlace(n) or paddle.XPUPlace(n) or paddle.CustomPlace(n).

Examples

>>> 
>>> import paddle

>>> paddle.set_device('custom_cpu')
>>> paddle.device.synchronize()
>>> paddle.device.synchronize("custom_cpu:0")
>>> place = paddle.CustomPlace('custom_cpu', 0)
>>> paddle.device.synchronize(place)