已关闭
[Bug-Report|缺陷反馈]: DynamicQuant 算子 优化建议,消除冗余代码,提升代码可维护性 #2294
LetsAiGo创建于 4月24日关闭于 4月25日
4月24日 将 liujie12345678 设为负责人
oscillated
4月24日 评论:
4月24日 评论:
您好,感谢反馈,问题已收到,正在处理。


4月25日 将 cuijie25 设为负责人
CANN-robot
4月25日 评论:
4月25日 评论:
Notice
@cuijie25 , you can't close an issue unless you are the author of it or a collaborator.


4月25日 添加了label:Accepted
4月25日 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
原始代码: outLocal = outQueue.DeQue(); scaleLocal = scaleQueue.DeQue(); offsetLocal;();
aicore inline void CopyOut(int32_t multiRow, int32_t loopCount)
{
LocalTensor
LocalTensor
LocalTensor
if (isAsymmetrical) {
offsetLocal = offsetQueue.DeQue
}
DataCopyExtParams copyParams{(uint16_t)multiRow, (uint16_t)(tilingData_.rowLen * sizeof(yDtype)), 0, 0, 0};
if constexpr (IsSameType<yDtype, int4b_t>::value) {
copyParams.blockLen = copyParams.blockLen >> 1;
uint32_t index = loopCount * lenGMMultiRow;
DataCopyPad(outGm[index], outLocal, copyParams);
} else {
DataCopyPad(outGm[loopCount * lenGMMultiRow], outLocal, copyParams);
}
建议代码:
Environment / 环境信息 (Mandatory / 必填)
代码优化建议,消除冗余代码,提升代码可维护性
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
代码优化建议,消除冗余代码,提升代码可维护性
Describe the expected behavior / 预期结果 (Mandatory / 必填)
代码优化建议,消除冗余代码,提升代码可维护性
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
代码优化建议,消除冗余代码,提升代码可维护性
Special notes for this issue/备注 (Optional / 选填)