vgather指令抽象。
class Vgather(x, y)
参数名 |
输入/输出 |
数据类型 |
说明 |
---|---|---|---|
x |
输入 |
tensor变量 |
输入x向量tensor。支持UINT 16,UINT 32。 |
y |
输出 |
tensor变量 |
输入y向量tensor。支持UINT 16,UINT 32。 |
ub_x, ub_y = Tensor("UB"), Tensor("UB") ub_x.load(gm_x) ub_y.load(gm_y) out = vgather(ub_x, ub_y)()