vshl
Function
vshl instruction abstraction.
Performs logical left shift or arithmetic left shift based on the input type.
Prototype
1 | class vshl(x, y) |
Parameters
Parameter |
Input/Output |
Data Type |
Description |
|---|---|---|---|
x |
Input |
Tensor variable |
Input x-vector tensor. UINT16, UINT32, INT16, and INT32 are supported. |
y |
Output |
Tensor variable |
Output y-vector tensor. UINT16, UINT32, INT16, and INT32 are supported. |
Example
1 2 3 4 5 | from mskpp import vshl, Tensor ub_x, ub_z = Tensor("UB"), Tensor("UB") gm_x = Tensor("GM") ub_x.load(gm_x) out = vshl(ub_x, ub_z)() |
Parent topic: Description of msKPP External APIs