vrsqrt

功能说明

对tensor中的每个元素求平方根倒数。

函数原型

vrsqrt(raw_tensor, impl_mode="high_performance")

参数说明

返回值

res_tensor:表示raw_tensor取平方根倒数,tvm.tensor类型。

约束说明

无。

支持的型号

Atlas 200/300/500 推理产品

Atlas 训练系列产品

Atlas 推理系列产品

Atlas A2训练系列产品

调用示例

from tbe import tvm
from tbe import dsl
shape = (1024,1024)
input_dtype = "float 16"
data = tvm.placeholder(shape, name="data", dtype=input_dtype)
res = dsl.vrsqrt(data)