CUDA流同步操作报错

报错信息

问题分析

NPU未使用NPU的流同步方法。

处理方法

使用NPU的流同步方法:

stream = torch_npu.npu.current_stream()
stream.synchronize()