vrec指令抽象。
vrec指令进行浮点倒数估计,找到每个向量的近似倒数估计。
class vrec(x,y,z)
参数名 |
输入/输出 |
数据类型 |
说明 |
---|---|---|---|
x |
输入 |
tensor变量 |
输入x向量tensor,支持f16,f32。 |
y |
输出 |
tensor变量 |
输出y向量tensor,支持f16,f32。 |
ub_x, ub_y = Tensor("UB"), Tensor("UB") ub_x.load(gm_x) out=vrec(ub_x, ub_y)