vshr

Function

vshr instruction abstraction.

Performs logical left shift or arithmetic left shift based on the input type.

Prototype

1
class vshr(x, y)

Parameters

Parameter

Input/Output

Data Type

Description

x

Input

Tensor variable

Input x-vector tensor. Supports UINT16, UINT32, INT16, and INT32.

y

Output

Tensor variable

Output y-vector tensor. Supports UINT16, UINT32, INT16, and INT32.

Example

1
2
3
4
5
from mskpp import vshr, Tensor
gm_x, gm_y = Tensor("GM"), Tensor("GM")
ub_x.load(gm_x)
ub_y.load(gm_y)
out = vshr(ub_x, ub_z)()