算子api的问题
收藏回复举报
算子api的问题
t('forum.solved') 已解决
发表于2024-11-02 14:46:36
0 查看

在实现算子的过程中使用到了Compare的api,官方的定义是这样的

template <typename T, typename U>
__aicore__ inline void Compare(const LocalTensor<U>& dstLocal, const LocalTensor<T>& src0Local, const LocalTensor<T>& src1Local, CMPMODE cmpMode, uint32_t calCount)

在这里我使用这个api的时候遇到了

/root/AscendC/NotEqual/build_out/op_kernel/binary/ascend310b/src/not_equal.cpp:52:9: note: in instantiation of function template specialization 'AscendC::Compare<signed char, unsigned char>' requested here
        Compare(yLocal, x1Local, x2Local, CMPMODE::LE, this->tileLength);
        ^

这是什么问题,求解

我要发帖子