vsqrt

功能说明

对tensor中的每个元素取平方根。

您可以在“te/lang/cce/te_compute/elewise_compute.py”查看接口定义。

约束说明

Atlas 200/300/500 推理产品:支持的数据类型有float16

Atlas 训练系列产品:支持的数据类型有float16、float32

函数原型

te.lang.cce.vsqrt(raw_tensor, priority_flag=0)

参数说明

返回值

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

支持的芯片型号

Atlas 200/300/500 推理产品

Atlas 训练系列产品

调用示例

shape = (1024,1024)
input_dtype = "float 16"
data = tvm.placeholder(shape, name="data", dtype=input_dtype)
res = te.lang.cce.vsqrt(data)