对tensor中的每个元素做自然指数运算e^x。
vexp(raw_tensor)
raw_tensor:输入tensor,tvm.tensor类型。
Atlas 200/300/500 推理产品:支持的数据类型有float16
Atlas 训练系列产品:支持的数据类型有float16、float32
Atlas 推理系列产品:支持的数据类型有float16、float32
Atlas A2训练系列产品:支持的数据类型有float16、float32
res_tensor:结果tensor,tvm.tensor类型。
无。
Atlas 200/300/500 推理产品
Atlas 训练系列产品
Atlas 推理系列产品
Atlas A2训练系列产品
from tbe import tvm from tbe import dsl shape = (1024,1024) input_dtype = "float16" data = tvm.placeholder(shape, name="data", dtype=input_dtype) res = dsl.vexp(data)