已关闭
[Bug-Report|缺陷反馈]: unique_with_counts_ext2存在嵌套调用L0接口情况,请分析是否修改 #5547
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_with_counts_ext2/op_host/op_api/unique_with_counts_ext2.cpp

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

if (CheckSupport4UniqueDim(self)) {
    return UniqueDimAiCore(self, sorted, returnInverse, dim, valueOut, inverseOut, countsOut, executor);
}

const aclScalar* dimScalar = executor->AllocScalar(dim);
const aclTensor* dimTensor = executor->ConvertToTensor(dimScalar, op::DataType::DT_INT64);
aclTensor* idxOut = executor->AllocTensor(inverseOut->GetViewShape(), inverseOut->GetDataType());
static internal::AicpuTaskSpace space("UniqueWithCountsExt2", ge::DEPEND_SHAPE_RANGE, false);
auto ret = ADD_TO_LAUNCHER_LIST_AICPU(UniqueWithCountsExt2, OP_ATTR_NAMES({"sorted", "return_inverse"}),
                                      OP_INPUT(self, dimTensor), OP_OUTPUT(valueOut, idxOut, countsOut, inverseOut),
                                      OP_ATTR(sorted, returnInverse));
return ret;

}
} // namespace l0op

UniqueDimAiCore也是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日 将 chenxingyu18 设为负责人
yuning_chen
yuning_chen成员
9月3日 评论:

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

likedislike
Annyqw
9月9日 评论:

/assign

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

已修改,待合入

likedislike
AAnnyqw
9月28日 关联了pull request:fix index
CANN-robotCANN-robot成员
9月28日 关闭了 issue
CANN-robotCANN-robot成员
9月29日 添加了label:resolved