vln
Function
vln instruction abstraction.
y = vln(x), where x and y take logarithms by element.
Prototype
1 | class vln(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 6 | from mskpp import vln, Tensor ub_x = Tensor("UB") gm_x = Tensor("GM") ub_x.load(gm_x) ub_y = Tensor("UB") out = vln(ub_x, ub_y)() |
Parent topic: Description of msKPP External APIs