vgatherb

Function

Gathers a given input tensor to the result tensor based on the offset address tensor provided.

Prototype

1
class vgatherb(x, y)

Parameters

Parameter

Input/Output

Data Type

Description

x

Input

Tensor variable

Input x-vector tensor. UINT16 and UINT32 are supported.

y

Output

Tensor variable

Output y-vector tensor. UINT16 and UINT32 are supported.

Example

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