vexp
Description
Performs the natural exponential operation on a tensor element-wise and returns e^x.
Prototype
vexp(raw_tensor)
Parameters
raw_tensor: a tvm.tensor for the input tensor
Returns
res_tensor: a tvm.tensor for the result tensor
Restrictions
None
Applicability
Example
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)
Parent topic: Math Compute APIs