vrec
Function
vrec instruction abstraction.
The vrec instruction performs floating-point reciprocal estimation and finds an approximate reciprocal for each vector.
Prototype
1 | class vrec(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 vrec, Tensor ub_x, ub_y = Tensor("UB"), Tensor("UB") gm_x = Tensor("GM") ub_x.load(gm_x) out=vrec(ub_x, ub_y)() |
Parent topic: Description of msKPP External APIs