Mull(ISASI)
产品支持情况
功能说明
对前count个输入数据src0、src1按元素相乘操作,将结果写入dst0Local,溢出部分写入dst1Local。计算过程如下:

函数原型
template <typename T>
__aicore__ inline void Mull(const LocalTensor<T>& dst0, const LocalTensor<T>& dst1, const LocalTensor<T>& src0, const LocalTensor<T>& src1, const uint32_t count)
参数说明
表 1 模板参数说明
表 2 参数说明
|
类型为LocalTensor,支持的TPosition为VECIN/VECCALC/VECOUT。 |
||
|
类型为LocalTensor,支持的TPosition为VECIN/VECCALC/VECOUT。 |
||
返回值说明
无
约束说明
- 操作数地址对齐要求请参见通用地址对齐约束。
调用示例
更多样例可参考LINK。
AscendC::Mull(dst0Local, dst1Local, src0Local, src1Local, 512);
结果示例如下:
输入数据src0Local:[-2039520159 95829766 -1522913829 ... ]
输入数据src1Local:[-1791575569 -291976917 -1973597151 ... ]
输出数据dst0Local:[-1560359025 212356098 1219226939 ... ]
输出数据dst1Local:[850752575 -6514620 699800065 ... ]