torch::npu::synchronize ()

torch::npu::synchronize(device_index)

npu设备同步接口,能与torch::cuda::synchronize()相同。