vrsqrt

函数功能

vrsqrt指令抽象。

浮点数的倒数平方根。

函数原型

class Vsqrt(x, y)

参数说明

参数名

输入/输出

数据类型

说明

x

输入

tensor变量

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

y

输出

tensor变量

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

使用示例

ub_x, ub_y = Tensor("UB"), Tensor("UB")
ub_x.load(gm_x)
out = vsqrt(ub_x, ub_y)()