下载
中文
注册

beta)torch_npu.npu_get_float_status

接口原型

torch_npu.npu_get_float_status(self) -> Tensor

功能描述

获取溢出检测结果。

参数说明

self (Tensor) - 数据内存地址张量,数据类型为float32。

调用示例

>>> 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)