torch_npu.npu_get_float_status(self) -> Tensor
获取溢出检测结果。
self (Tensor) - 数据内存地址张量,数据类型为float32。
1 2 3
>>> x = torch.rand(2).npu() >>> torch_npu.npu_get_float_status(x) tensor([0, 0, 0, 0, 0, 0, 0, 0], device='npu:0', dtype=torch.int32)