Closed
[Documentation|文档反馈]: aclnnTransConvolutionWeight.md Documents Improvments #303
LiuZongguAdd on Dec 23, 2025Closed at Dec 23, 2025
LiuZonggu
Dec 23, 2025 Comments:
Dec 23, 2025 Comments:
Dec 23, 2025 Close issue
Dec 24, 2025 changed custom state from 进行中 to 已完成
Mar 19 Assign LiuZonggu as responsible person
Mar 20 Added label: resolved
Mar 20 Added label: Accepted


Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
一、文档链接 (必填)
https://gitcode.com/cann/ops-math/blob/master/conversion/trans_data/docs/aclnnTransConvolutionWeight.md
二、问题文档片段 (必填)
std::vector<int64_t> convStrides = {1, 1, 1, 1}; std::vector<int64_t> convPads = {0, 0, 0, 0}; std::vector<int64_t> convOutPads = {1, 1, 1, 1}; std::vector<int64_t> convDilations = {1, 1, 1, 1}; aclIntArray *strides = aclCreateIntArray(convStrides.data(), 2); std::unique_ptr<aclIntArray, aclnnStatus (*)(const aclIntArray *)> stridesPtr(strides, aclDestroyIntArray); CHECK_FREE_RET(strides != nullptr, return ACL_ERROR_INTERNAL_ERROR); aclIntArray *pads = aclCreateIntArray(convPads.data(), 2); std::unique_ptr<aclIntArray, aclnnStatus (*)(const aclIntArray *)> padsPtr(pads, aclDestroyIntArray); CHECK_FREE_RET(pads != nullptr, return ACL_ERROR_INTERNAL_ERROR); aclIntArray *outPads = aclCreateIntArray(convOutPads.data(), 2); std::unique_ptr<aclIntArray, aclnnStatus (*)(const aclIntArray *)> outPadsPtr(outPads, aclDestroyIntArray); CHECK_FREE_RET(outPads != nullptr, return ACL_ERROR_INTERNAL_ERROR); aclIntArray *dilations = aclCreateIntArray(convDilations.data(), 2); std::unique_ptr<aclIntArray, aclnnStatus (*)(const aclIntArray *)> dilationsPtr(dilations, aclDestroyIntArray); CHECK_FREE_RET(dilations != nullptr, return ACL_ERROR_INTERNAL_ERROR);💡 存在的问题(选填)
1、aclnnTransConvolutionWeight的参数说明executor和stream应该是输入,不是输出
2、调用示例中
aclIntArray *strides = aclCreateIntArray(convStrides.data(), 2), 创建卷积参数 IntArray 时长度写死为 2,而实际提供的向量{1, 1, 1, 1}长度为 4,导致数组截断或运行时越界错误。3、调用示例中,注释有3.调用CANN算子库API,需要修改为具体的API,实际后面用的已经是对应的API,不需要替换,这个注释容易引起误解