torch_npu.npu_clear_float_status(self) -> Tensor
清除溢出检测相关标志位。
self (Tensor) - 数据类型为float32的张量。
1 2 3
>>> x = torch.rand(2).npu() >>> torch_npu.npu_clear_float_status(x) tensor([0., 0., 0., 0., 0., 0., 0., 0.], device='npu:0')