torch_npu.npu_get_float_status

API接口

torch_npu.npu_get_float_status(self) -> Tensor

功能描述

计算npu_get_float_status算子函数。

参数说明

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