| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Format update: Adjusted the license description format in all relevant files. Co-authored-by: jiangqi<jiangqi47@h-partners.com> # message auto-generated for no-merge-commit merge: !366 merge license6 into master Format update: Adjusted the license description format in all relevant files. Created-by: jiangqi2025 Commit-by: jiangqi Merged-by: turing_project1 Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #123--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!366 | 9 个月前 | |
fix(quant): quant 系列算子 fallback 日志规范、Attr API 迁移及 aclnn 接口对齐 Co-authored-by: yuanbin_22<yuanbin22@huawei.com> # message auto-generated for no-merge-commit merge: !9000 merge fix/fallback-log-quality into master fix(quant): quant 系列算子 fallback 日志规范、Attr API 迁移及 aclnn 接口对齐 Created-by: yuanbin_22 Commit-by: yuanbin_22 Merged-by: cann-robot Description: ## 描述 本 PR 对 4 个 quant 系列算子的 fallback 实现进行统一修复,涵盖日志规范、Attr 访问 API 迁移、aclnn 接口对齐及属性解析补全。 ### 涉及算子 | 算子 | 文件 | +行 | -行 | |------|------|-----|-----| | quant_update_scatter | index/quant_update_scatter/op_graph/quant_update_scatter_fallback.cpp | +55 | -14 | | ascend_anti_quant_v2 | quant/ascend_anti_quant_v2/op_graph/ascend_anti_quant_v2_fallback.cpp | +17 | -11 | | ascend_quant_v2 | quant/ascend_quant_v2/op_graph/ascend_quant_v2_fallback.cpp | +23 | -15 | | dynamic_quant | quant/dynamic_quant/op_graph/dynamic_quant_fallback.cpp | +16 | -8 | ### 变更内容 #### 1. 日志规范修复 - **模块标签统一**:所有算子的 OP_LOGE/OP_LOGD 模块标签统一为 "aclnnfallback <op_name>" 格式(此前各算子标签不一致,如 "aclnnfallback"、"fallback_dynamic_quant"、host_api_ctx->GetNodeName()) - **拼写修复**:"faild" → "failed" - **格式符修复**:%d → %u(graphStatus 为无符号类型,使用 %d 存在符号截断风险) - **入口日志统一**:各算子入口日志统一为 "fallback begin"(此前为 "Enter XxxFunc." 或 "Xxx fallback begin" 等不一致格式) #### 2. Attr API 迁移 将已废弃的 GetAttrPointer<T>() 统一替换为类型安全的访问接口: - GetAttrPointer<int64_t>() → GetInt() - GetAttrPointer<bool>() → GetBool() - GetAttrPointer<char>() → GetStr() #### 3. aclnn 接口对齐 - **quant_update_scatter**:按 varDtype 分发——DT_INT8 调用 aclnnInplaceQuantScatter,其他 dtype 调用 aclnnInplaceQuantScatterV2(传入 roundMode 参数) - **ascend_quant_v2**:aclnnAscendQuant → aclnnAscendQuantV3(新增 axis 参数) - **dynamic_quant**:aclnnDynamicQuantV2 调用新增 dstType 参数及尾部 nullptr 占位 #### 4. 新增属性解析与校验 - **quant_update_scatter**:新增 reduce、reciprocal_scale、round_mode 属性解析;reduce 仅支持 "update" 模式;reciprocal_scale=true 时报错并返回 GRAPH_FAILED(fallback 不支持) - **ascend_quant_v2**:新增 ATTR_AXIS_INDEX(index=3)及 axis 属性读取 - **dynamic_quant**:新增 ATTR_DSTTYPE_INDEX(index=0)及 dstType 属性读取 ## 关联的Issue 关联Issue #4975 ## 测试 - 各算子 fallback 路径功能验证通过 - 日志输出格式符合规范,模块标签可正确过滤 - reciprocal_scale=true 场景正确报错拦截 ## 文档更新 无 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!9000 | 1 个月前 | |
docs: 统一原型注释中的产品名称(master) Co-authored-by: yolic<chenyuning1@huawei.com> # message auto-generated for no-merge-commit merge: !11186 merge 923soc into master docs: 统一原型注释中的产品名称(master) Created-by: yolic Commit-by: yolic Merged-by: cann-robot Description: ## 描述 原型注释里的产品名称仍沿用 Series Product、Ascend 950 AI Processor、Ascend 950PR/Ascend 950DT 等旧表述,与当前产品命名不一致。本次只改注释,不改算子接口和计算逻辑。 合入目标:cann/ops-nn 的 master。 覆盖各算子 op_graph/*_proto.h,以及 common/inc/op_graph/op_nn_proto_extend.h、common/stub/op_graph/math_proto_stub.cpp。 ## 关联的Issue 关联 Issue #6213(Close #6213) https://gitcode.com/cann/ops-nn/issues/6213 ## 测试 仅修改原型注释中的产品名称,不涉及算子 host/kernel 计算逻辑,无需算子泛化。已在本地用仓库 pre-commit 的 end-of-file-fixer 与 clang-format 核对格式,且没有改动算子输入、输出和属性定义。 ## 文档更新 更新了 op_graph 原型注释中的产品名称,无独立 markdown 文档。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!11186 | 15 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 9 个月前 | ||
| 1 个月前 | ||
| 15 天前 |