GetReduceRepeatSumSpr(ISASI)
产品支持情况
功能说明
获取ReduceSum接口(Tensor前n个数据计算接口,n为接口的count参数)的计算结果。
函数原型
template <typename T>
__aicore__ inline T GetReduceRepeatSumSpr()
参数说明
表 1 模板参数说明
返回值说明
ReduceSum接口(Tensor前n个数据计算接口,n为接口的count参数)的计算结果。
约束说明
无。
调用示例
AscendC::LocalTensor<float> src;
AscendC::LocalTensor<float> work;
AscendC::LocalTensor<float> dst;
AscendC::ReduceSum(dst, src, work, 128);
float res = AscendC::GetReduceRepeatSumSpr<float>();