已关闭
[Bug-Report|缺陷反馈]: SparseApply算子代码规范整改 #5659
李鑫创建于  18 天前关闭于  18 天前
李鑫
李鑫成员
18 天前 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

sparseApply 系列算子(SparseApplyFtrlV2、SparseApplyProximalAdagrad、SparseApplyRMSProp)arch35 架构下的 tiling 相关代码
tiling 辅助函数参数增加 const 限定:在三个算子的 op_host/arch35/_tiling.cpp 中,将 GetPlatformInfo、ValidateVarRank、ValidateIndicesRank、ValidateStateTensorShapes、ValidateGradShape、ValidateDtypes、ValidateScalarInputs、ValidateInputs、GetShapeInfo 等静态函数的 gert::TilingContext 参数统一改为 const gert::TilingContext*,明确这些函数只读上下文而不修改其内容。
tiling 数据结构头文件补充 包含:在三个算子的 op_kernel/arch35/*_tiling_data.h 头文件中新增 #include ,为其中使用的 int32_t、int64_t 类型提供显式的标准头文件依赖

Environment / 环境信息 (Mandatory / 必填)

ascned950

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

rt

Describe the expected behavior / 预期结果 (Mandatory / 必填)

rt

rt

Special notes for this issue/备注 (Optional / 选填)

likedislike
李鑫李鑫成员
18 天前 添加了label:bug-report
李鑫李鑫成员
18 天前 将 lixin433 设为负责人
李鑫
李鑫成员
18 天前 评论:

/assign

likedislike
CANN-robotCANN-robot成员
18 天前 关闭了 issue
CANN-robotCANN-robot成员
18 天前 添加了label:resolved