下载
中文
注册

vrsqrt

功能说明

vrsqrt指令抽象。

浮点数的倒数平方根。

接口原型

class vrsqrt(x, y)

参数说明

参数名

输入/输出

数据类型

说明

x

输入

tensor变量

输入x向量tensor。支持float16、float32。

y

输出

tensor变量

输出向量tensor。支持float16、float32。

使用示例

1
2
3
4
5
from mskpp import vrsqrt, Tensor
ub_x, ub_y = Tensor("UB"), Tensor("UB")
gm_x = Tensor("GM")
ub_x.load(gm_x)
out = vrsqrt(ub_x, ub_y)()