已关闭
[Bug-Report|缺陷反馈]: unique_consecutive存在嵌套调用L0接口情况,请分析是否修改 #5545
liuhanwen8创建于  9月3日关闭于  9月28日
liuhanwen8
liuhanwen8
9月3日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

https://gitcode.com/cann/ops-nn/blob/master/index/unique_consecutive/op_api/unique_consecutive.cpp

aclnnStatus UniqueConsecutive(const aclTensor* self, bool returnInverse, bool returnCounts, int64_t dim,
aclTensor* valueOut, aclTensor* inverseOut, aclTensor* countsOut, aclOpExecutor* executor)
{
L0_DFX(UniqueConsecutive, self, returnInverse, returnCounts, dim, valueOut, inverseOut, countsOut);

if (CheckSupport4Aicore(self, returnInverse, dim, valueOut, inverseOut, countsOut)) {
    op::DataType outIdxType = op::DataType::DT_INT64;
    if (returnInverse) {
        outIdxType = inverseOut->GetDataType();
    } else if (returnCounts) {
        outIdxType = countsOut->GetDataType();
    }
    return UniqueConsecutiveAiCore(self, returnInverse, returnCounts, dim, valueOut, inverseOut, countsOut,
                                   outIdxType, executor);
}

static internal::AicpuTaskSpace space("UniqueConsecutive", ge::DEPEND_SHAPE_RANGE);
aclnnStatus ret = ACLNN_SUCCESS;
if (dim == NoneN) {
    ret = ADD_TO_LAUNCHER_LIST_AICPU(UniqueConsecutive, OP_ATTR_NAMES({"return_idx", "return_counts"}),
                                     OP_INPUT(self), OP_OUTPUT(valueOut, inverseOut, countsOut),
                                     OP_ATTR(returnInverse, returnCounts));
} else {
    ret = ADD_TO_LAUNCHER_LIST_AICPU(UniqueConsecutive, OP_ATTR_NAMES({"return_idx", "return_counts", "axis"}),
                                     OP_INPUT(self), OP_OUTPUT(valueOut, inverseOut, countsOut),
                                     OP_ATTR(returnInverse, returnCounts, dim));
}
return ret;

}
} // namespace l0op

UniqueConsecutiveAiCore也是L0函数,存在嵌套调用

Environment / 环境信息 (Mandatory / 必填)

不涉及

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

不涉及

Describe the expected behavior / 预期结果 (Mandatory / 必填)

L0_DFX使用说明:
https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/latest/API/aolapi/atlasascendc_api_07_1051.html

不涉及

Special notes for this issue/备注 (Optional / 选填)

likedislike
yuning_chenyuning_chen成员
9月3日 将 sunchun 设为负责人
yuning_chen
yuning_chen成员
9月3日 评论:

您好,感谢反馈,问题已收到,当前 @bartonfang 正在跟踪处理。

likedislike
yuning_chenyuning_chen成员
9月3日 移除了负责人 sunchun
yuning_chenyuning_chen成员
9月3日 将 bartonfang 设为负责人
Annyqw
9月9日 评论:

/assign

likedislike
CANN-robotCANN-robot成员
9月9日 将 Annyqw 设为负责人
Annyqw
9月15日 评论:

已修改待合入

likedislike
BartonFangBartonFang成员
9月24日 移除了负责人 bartonfang
AAnnyqw
9月28日 关联了pull request:fix index
CANN-robotCANN-robot成员
9月28日 关闭了 issue
CANN-robotCANN-robot成员
9月29日 添加了label:resolved