def synchronize(): """Waits for all kernels in all streams on current device to complete.""" _lazy_init() return torch._C._cuda_synchronize()