vmulconv
功能说明
vmulconv指令抽象。
z = vmulconv(x, y),x、y按元素相乘,并对输出做量化操作。
接口原型
1 | class vmulconv(x, y, z, dtype)  | 
参数说明
参数名  | 
输入/输出  | 
数据类型  | 
说明  | 
|---|---|---|---|
x  | 
输入  | 
Tensor变量  | 
输入x向量Tensor。支持FP16。  | 
y  | 
输入  | 
Tensor变量  | 
输入y向量Tensor。支持FP16。  | 
z  | 
输出  | 
Tensor变量  | 
输出向量Tensor。  | 
dtype  | 
输入  | 
Tensor变量  | 
  | 
使用示例
1 2 3 4 5 6  | from mskpp import vmulconv, Tensor ub_x, ub_y, ub_z = Tensor("UB"), Tensor("UB"), Tensor("UB") gm_x, gm_y = Tensor("GM"), Tensor("GM") ub_x.load(gm_x) ub_y.load(gm_y) out = vmulconv(ub_x, ub_y, ub_z, 'UINT8')()  | 
父主题: 指令接口