synchronize¶
dragon.vm.torch.cuda.synchronize(device=None)[source]¶Synchronize all streams on a device.
If
deviceis None, the current device will be selected.- Parameters:
- device (Union[dragon.vm.torch.device, int], optional) – The device to synchronize.