已合并
支持下一代slice strided_slice算子实现 #549
hawdonz创建于 2025年12月29日
支持下一代slice strided_slice算子实现 #549
已合并
hawdonz创建于 2025年12月29日
hawdonz
hawdonz
2025年12月29日

描述

关联的Issue

测试

文档更新

类型标签

  • Bug修复
  • 新特性
  • 性能优化
  • 文档更新
  • 其他,请描述:
likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 hawdonz 的贡献)
CANN-robot
CANN-robot成员
2025年12月29日 评论:

Thank your for your pull-request.

The full list of commands accepted by me can be found at here.

You can get sig-info at here

likedislike
CANN-robot
CANN-robot成员
2025年12月29日 评论:

以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入

Module List Reviewers Committers
conversion/slice N/A loov1, songkai111, FelixTang7, rxtfeng, zhangyuxiang0119
conversion/strided_slice N/A songkai111, FelixTang7, rxtfeng, zhangyuxiang0119, wangrui_
likedislike
CANN-robotCANN-robot成员
2025年12月29日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
2025年12月29日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
CANN-robot
CANN-robot成员2025年12月29日进行代码检视1
conversion/slice/op_host/arch35/slice_tiling_arch35.cpp
@@ -0,0 +892,4 @@
892+ auto xDesc = context->GetInputDesc(INPUT_X_INDEX);
893+ OP_CHECK_NULL_WITH_CONTEXT(context, xDesc);
894+ 
895+ return SliceTilingForAscendC(
CANN-robot
CANN-robot2025年12月29日评论:

不可达代码: 在Tiling4Slice函数中,return SliceTilingForAscendC(...)语句后面还有return ge::GRAPH_SUCCESS,这行代码永远不会被执行。

问题类型: 不可达代码
文件路径: conversion/slice/op_host/arch35/slice_tiling_arch35.cpp
行号: 895
问题代码:

return SliceTilingForAscendC(
    context, compile_info->block_dim, compile_info->ub_size, compile_info->cacheLineSize, sliceparam,
    xDesc->GetDataType());
return ge::GRAPH_SUCCESS;

修改建议:

删除多余的return ge::GRAPH_SUCCESS;语句。

此评论由代码审查工具自动生成

likedislike
此处折叠了87条消息 查看更多
CANN-robotCANN-robot成员
2025年12月30日 添加了label:lgtm
RuiWang_成员
2025年12月30日 评论:

/approve

likedislike
CANN-robot
CANN-robot成员
2025年12月30日 评论:

Review Guide

This Pull-Request Passes Review.
Committers who writed a comment of /approve are: songkai111.
Reviewers who writed a comment of /lgtm are: zhangyuxiang0119, wangrui_, songkai111.

likedislike
CANN-robotCANN-robot成员
2025年12月30日 关闭了关联的issue
CANN-robotCANN-robot成员
2025年12月30日 合入了pull request