已合并
as_strided/dynamic_partition/mem_set/unpack modify codecheck #3280
as_strided/dynamic_partition/mem_set/unpack modify codecheck #3280
已合并
csz创建于 6月11日
 csz
csz
6月11日

描述

修复as_strided/dynamic_partition/mem_set/unpack 的codecheck问题

关联的Issue

测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 csz 的贡献)
 csz csz
6月11日 创建了 pull request,commit 80439ffc
CANN-robotCANN-robot成员
6月11日 添加了label:cann-cla/yes
 csz
csz
6月11日 评论:

compile

likedislike
 csz csz
6月11日 update merge request[project id: 7649531, iid: 3280, commit_id: 5219e61d1e6a45ef17d60de2e1c170ba9a8e3c98] virtual merging success
CANN-robot
CANN-robot成员
6月11日 评论:

CLA Signature Pass

chengzhi1120, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robot
CANN-robot成员
6月11日 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here
You can get sig-info at here


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
conversion/as_strided zhanw_coding, 宋凯 (2/2) zhanw_coding, 宋凯 (2/1)
repo-cann/ops-math 宋凯, zhanw_coding (2/2) 宋凯, zhanw_coding (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

chengzhi1120, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robot成员
6月11日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月11日 评论:

流水线任务触发成功
任务链接 [bb29df1c4db7419b9c4a863aaad24694][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5 ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_harmony-infer ✅ SUCCESS >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
UT_Test ✅ SUCCESS
UT_Test_experimental ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>

[2026-06-11 20:41:28]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
6月11日 评论:

流水线任务触发成功
任务链接 [eeff382f212045f0b446c656b25773f4][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_Pr ✅ SUCCESS
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_codestyle ✅ SUCCESS >>>>>
codecheck_precommit ⚠️ WARNING >>>>> >>>>>

[2026-06-11 20:37:41]    CI执行结束

likedislike
CANN-robotCANN-robot成员
6月11日 添加了label:api-check-pass
CANN-robotCANN-robot成员
6月11日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月11日 添加了label:ci-pipeline-passed
zhanw_coding
zhanw_coding成员6月11日进行代码检视2
conversion/as_strided/op_host/arch35/as_strided_tiling_arch35.cpp
@@ -483,2 +484,3 @@
483484{
484- uint64_t totalOutElement = outSize.GetShapeSize();
485+ int64_t shapeSize = outSize.GetShapeSize();
486+ uint64_t totalOutElement = static_cast<uint64_t>(shapeSize);
zhanw_coding
zhanw_coding6月11日评论:

要判断一下是否<0,是则打印错误日志退出,>=0 再转成 uint64_t

likedislike
 csz
csz
6月11日 评论:

已整改

 csz csz
6月11日 update merge request[project id: 7649531, iid: 3280, commit_id: bb1e18323a10c02e9333c57f8a2d0ecf45504dd8] virtual merging success
 csz csz
6月11日 推送  1 个提交:1d68da5c-as_strided/dynamic_partition/mem_set/unpack modify codecheck
 csz csz
6月11日 update merge request[project id: 7649531, iid: 3280, commit_id: d7b458f8016670a919c4d842dac1cd34ecc9c69d] virtual merging success
CANN-robotCANN-robot成员
6月11日 添加了label:stat/needs-squash
CANN-robotCANN-robot成员
6月11日 删除了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
6月11日 评论:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): ci-pipeline-passed.

likedislike
 csz
csz
6月11日 评论:

compile

likedislike
 csz csz
6月11日 update merge request[project id: 7649531, iid: 3280, commit_id: 0c951f4391a973cd55d7bfc88b9bf106275b088a] virtual merging success
zhanw_codingzhanw_coding成员
6月11日 解决了最后一个问题
CANN-robotCANN-robot成员
6月11日 删除了label:api-check-pass
CANN-robotCANN-robot成员
6月11日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月11日 评论:

流水线任务触发成功
任务链接 [4ebdf873ad7046298939d26b5f4aa883][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5 ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_harmony-infer ✅ SUCCESS >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
UT_Test ✅ SUCCESS
UT_Test_experimental ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>

[2026-06-11 21:37:06]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
6月11日 评论:

流水线任务触发成功
任务链接 [c7c46221145b4af2bd2eed698d04287c][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_Pr ✅ SUCCESS
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_codestyle ✅ SUCCESS >>>>>
codecheck_precommit ⚠️ WARNING >>>>> >>>>>

[2026-06-11 21:31:04]    CI执行结束

likedislike
zhanw_coding
zhanw_coding成员
6月11日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
6月11日 添加了label:approved
CANN-robotCANN-robot成员
6月11日 添加了label:api-check-pass
CANN-robotCANN-robot成员
6月11日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月11日 添加了label:ci-pipeline-passed
songkai111成员
6月11日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
6月11日 添加了label:lgtm
CANN-robotCANN-robot成员
6月11日 合入了pull request