vexp
Function
vexp instruction abstraction.
y = vexp(x), where x and y take exponents by element.
Prototype
1 | class vexp(x, y) |
Parameters
Parameter |
Input/Output |
Data Type |
Description |
|---|---|---|---|
x |
Input |
Tensor variable |
Input x-vector tensor. FP16 and FP32 are supported. |
y |
Output |
Tensor variable |
Output y-vector tensor. FP16 and FP32 are supported. |
Example
1 2 3 4 5 | from mskpp import vexp, Tensor ub_x = Tensor("UB") ub_x.load(gm_x) ub_y = Tensor("UB") out = vexp(ub_x, ub_y)() |
Parent topic: Description of msKPP External APIs