torch_npu.npu.get_npu_overflow_flag

torch_npu.npu.get_npu_overflow_flag()

检测npu计算过程中是否有数值溢出。