| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
refactor: 迁移NN公共op_api头文件引用 Co-authored-by: clinglai0517<laichangling@huawei.com> # message auto-generated for no-merge-commit merge: !10879 merge nn_prefix_common_headers_0920 into master refactor: 迁移NN公共op_api头文件引用 Created-by: clinglai0517 Commit-by: clinglai0517 Merged-by: cann-robot Description: ## 描述 本变更属于 NN 公共 op_api 头文件迁移的调用清理阶段: - 将非 experimental 目录中 21 个 op_api/level2_base.h 调用迁移到 op_api/level2_base_nn.h。 - 将非 experimental 目录中 2 个 op_api/level2_base_caculation.h 调用迁移到 op_api/level2_base_caculation_nn.h。 - experimental 目录暂时保留旧转发头:11 处 level2_base.h、3 处 level2_base_caculation.h,避免 CI 将导出同名 ACLNN 接口的实验算子共同链接。 - 保留旧头文件作为兼容转发头;本 MR 不宣称已完成最终包内 basename 去重。 - 不修改 op_api_def_nn.h,不包含功能逻辑变更。 ## 关联的Issue Issue #6008 ## 测试 - git diff --check upstream/master...HEAD:通过。 - pre_commit:全部通过,包括 clang-format、codespell 和 OAT。 - CANN 9.0 容器执行 bash build.sh --opapi -j32:通过,成功生成 libopapi_nn.so。 - 原 experimental CI 同时选择 swish 与 swish_v2 后发生既有同名 ACLNN 符号冲突;本次兼容调整已将两者移出最终 MR diff,等待线上 CI 复验。 ## 文档更新 无文档更新。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:公共头文件引用迁移 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!10879 | 30 天前 | |
fix: 修复 10 算子 TTK golden 参考实现的输出 dtype 与 fp64 精度处理缺陷 Co-authored-by: tianqiguang<tianqiguang@huawei.com> # message auto-generated for no-merge-commit merge: !11042 merge goldenMod into master fix: 修复 10 算子 TTK golden 参考实现的输出 dtype 与 fp64 精度处理缺陷 Created-by: tianqiguang Commit-by: tianqiguang Merged-by: cann-robot Description: ## 描述 本 MR 修正 loss / norm / optim / quant 共 10 个算子的 TTK golden 参考实现( <算子>/tests/assets/golden.py),使 golden 严格按用例声明的输出 dtype(output_dtypes)生成真值,并在 TTK Promote 提供 fp64 时保留 fp64 计算精度。仅修改测试参考实现(纯 Python,numpy/torch 计算),不涉及 kernel / op_host 代码。 ### 改动原因 1. **忽略用例声明的输出 dtype(output_dtypes)**:次级输出被硬编码为 float32,不看声明。典型如 norm/deep_norm/tests/assets/golden.py:旧实现 _compute_deep_norm 直接将 mean/rstd 强制 .to(torch.float32),deep_norm_golden 只从 output_dtypes[2] 取 y 的 dtype,output_dtypes[0]/[1](mean/rstd 声明)被忽略;norm/batch_norm3_d、norm/batch_norm3_d_grad、norm/batch_norm_grad_ext2 的 batch_mean/saved_var/saved_rstd/dscale/doffset、optim/apply_adam_w_quant 的 absmax_m/absmax_v、quant/dynamic_quant_update_scatter(_v2) 的 scale/offset 同样被强制 float32。 2. **把 TTK Promote 的 fp64 精度截回 fp32**:golden 内部一律经 astype(np.float32) / .to(torch.float32)(_to_f32 / _to_torch_float32 / _to_numpy_float32 及一系列 dtype=np.float32 的归约助手),TTK Promote 送入的 fp64 输入被降为 fp32,cross_check 真值被截回 fp32(修复后代码注释对应 "retaining fp64 (TTK Promote) so the true value is not cut back to fp32")。 ### 改动方法 - **统一计算 dtype 入口**:_to_f32 → _to_compute(apply_adam_w_quant / apply_came_part4)、_to_torch_float32/_to_numpy_float32 → _to_torch_compute/_to_numpy_compute(deep_norm_grad)、_to_torch(x, dtype=float32) 改为保持输入自身 dtype(dynamic_quant_update_scatter)。语义:fp64 原样保留,fp16/bf16 提升到 fp32。 - **归约/累加助手改为输入 dtype 驱动**:batch_norm3_d_grad / batch_norm_grad_ext2 的 _sum_fp32、_sum_seq_fp32、_binary_fold_sum、_ra_split_r_channel_sum、_sum_pairwise_fp32、_chunk32_pair_channel_sum、_chunk_channel_sum、_ascend_like_channel_sum 由 np.float32 改为 x.dtype;deep_norm_grad 的 _reduce_sum_vl、_reduce_sum_regbase(_1d)、_reduce_sum_rows、_reduce_sum_rows_fp64 改为 values.dtype 驱动;新增 _compute_dtype() 判定(fp64 输入 → 全程 fp64,否则 fp32)。 - **按声明输出 dtype 生成输出**:新增 _output_dtype(kwargs, index, default) 从 TTK 传入的 output_dtypes 取声明 dtype(缺省 float32)。应用于 mean/rstd(deep_norm、deep_norm_grad)、batch_mean/saved_var/saved_rstd(batch_norm3_d)、dscale/doffset(batch_norm3_d_grad、batch_norm_grad_ext2)、dbeta/dgamma(deep_norm_grad)、absmax_m/absmax_v(apply_adam_w_quant,改为保持计算 dtype)、scale(dynamic_quant_update_scatter,改用 var_scale 实际 dtype)、out_scale/out_offset(_v2,保持原 dtype,去掉 np.float32 强制转换)。 - **常量与超参对齐计算 dtype**:apply_adam_w_quant 的 one/lr/beta1/beta2/weight_decay/eps/gnorm_scale、dynamic_quant_update_scatter 的 QUANT_MAX、_v2 的 INT4_SCALE_RANGE/INT4_QUANT_MAX/QUANT_EPSILON、batch_norm*_grad 的 reduce_count/epsilon 标量等改用 compute dtype。 - **cosine_embedding_loss**:计算 dtype 用 torch.promote_types(torch.float32, a.dtype) 并再与声明输出 dtype 提升;整数输入经 _to_compute_tensor 提升到计算 dtype;归约不再强制 dtype=torch.float32;reduction 结果按 out_dtype 输出。 - **batch_norm3_d**:__spec__ / __golden__ 增加算子名别名 batch_norm3_d(原仅注册 batch_norm3d)。 - **apply_came_part4**:_dtype_of 支持 float64;customize_inputs 增加 **kwargs 并使返回顺序与函数签名一致(sum_r 移至 sum_u_rc 之后);移除 __input__ 注册。 - **dynamic_quant_update_scatter / _v2**:_compute_dtype 由输入与声明输出 dtype 联合提升;量化写回不再经 np.float32 截断。 | # | 算子 | 文件 | +/− | |---|------|------|-----| | 1 | loss/cosine_embedding_loss | tests/assets/golden.py | +54/−18 | | 2 | norm/batch_norm3_d | tests/assets/golden.py | +36/−6 | | 3 | norm/batch_norm3_d_grad | tests/assets/golden.py | +53/−29 | | 4 | norm/batch_norm_grad_ext2 | tests/assets/golden.py | +53/−29 | | 5 | norm/deep_norm | tests/assets/golden.py | +7/−3 | | 6 | norm/deep_norm_grad | tests/assets/golden.py | +82/−55 | | 7 | optim/apply_adam_w_quant | tests/assets/golden.py | +45/−19 | | 8 | optim/apply_came_part4 | tests/assets/golden.py | +29/−21 | | 9 | quant/dynamic_quant_update_scatter | tests/assets/golden.py | +41/−10 | | 10 | quant/dynamic_quant_update_scatter_v2 | tests/assets/golden.py | +30/−13 | | | **合计** | **10 个文件** | **+430/−203** | ## 关联的Issue - #6449 ## 测试 本 MR 仅修改 TTK golden 参考实现(纯 Python,numpy/torch 计算,无 kernel / op_host 代码变更),建议按仓库 TTK ST 流程验证(需 Linux + CANN + Ascend 环境): bash cd /path/to/ops-test-kit REPO=/path/to/ops-nn # 仓内已提供用例的 3 个算子 python3 -m ttk kernel -i "$REPO/norm/deep_norm/tests/st/arch35/ttk_kernel_deep_norm_generalization.csv" \ --plugin "$REPO/norm/deep_norm/tests/assets/golden.py" python3 -m ttk kernel -i "$REPO/quant/dynamic_quant_update_scatter/tests/st/arch35/ttk_kernel_dynamic_quant_update_scatter_st.csv" \ --plugin "$REPO/quant/dynamic_quant_update_scatter/tests/assets/golden.py" python3 -m ttk kernel -i "$REPO/quant/dynamic_quant_update_scatter_v2/tests/st/arch35/ttk_kernel_dynamic_quant_update_scatter_v2_st.csv" \ --plugin "$REPO/quant/dynamic_quant_update_scatter_v2/tests/assets/golden.py" 检查点: - 各输出 dtype 与用例 output_dtypes 声明一致(如 deep_norm fp16 用例 ('float32','float32','float16')); - fp64 Promote 用例的 cross_check 真值保持 fp64,不被截回 fp32; - 既有 float16/bfloat16 用例的容差与判定不变。 ## 文档更新 本 MR 未包含文档修改。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!11042 | 12 天前 | |
feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Co-authored-by: chaihailun<chaihailun@huawei.com> # message auto-generated for no-merge-commit merge: !11894 merge adapt-22-ops-ascend350 into master feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Created-by: chaihailun Commit-by: chaihailun Merged-by: cann-robot Description: ## 描述 为以下 22 个算子补齐 DVLite(ascend350)平台配置,以已有 ascend950 实现为基线,复用 arch35 构建路径: - optim:AdamApplyOne、AdamApplyOneWithDecay、AdamApplyOneWithDecayAssign、ApplyCamePart1–4、ApplyFtrl、ApplyMomentum。 - loss:KlDivLossGrad、MseLossGrad、SmoothL1LossGradV2、CrossEntropyLoss、CrossEntropyLossGrad、CTCLossV2、CTCLossV2Grad。 - conv:DeformableOffsets、DeformableOffsetsGrad。 - quant:DequantSwigluQuant、SwigluMxQuant、SwigluMxQuantWithDualAxis。 - activation:ClippedSwiglu。 适配内容: | 检查项 | 修改及检查结果 | |---|---| | 二进制配置 | 从同一基线的 ascend950 复制 21 份 binary JSON 至 ascend350,解析结构和值一致;ApplyCamePart2 沿用现有自动生成机制。 | | 信息库注册 | 22 个 def 追加 ascend350 注册,复用对应 ascend950 配置对象。 | | CMake | 必要的 host/tiling 映射增加 ascend350/arch35,kernel 平台白名单增加 ascend350;已覆盖的平台沿用公共机制。 | | ACLNN 平台判断 | 已检查入口、转调及 RegBase 判断;未修改 ACLNN 或平台判断。 | | 其他交付件 | 已检查资源查询、图路径、依赖、测试及打包路径;固定缓冲预算、指令能力和运行覆盖仍待验证,范围外问题未修改。 | | 公共编译配置 | 仅修改目标 OpType 的 19 个适用条目,补齐350平台及对应950编译选项;CrossEntropyLoss、ClippedSwiglu 补齐350的 auto_sync=false。 | 保留 master 的 ascend960dt/ascend960pr 等配置,以及 ApplyCamePart1 的显式 kernel 源码入口。未修改算法、tiling 策略或非350平台功能行为。PR 保持一个提交。 运行验证需重点确认 CTC/CAME 固定缓冲预算、CTC 平台回退、量化内核 FP8/同步指令,以及350测试选择。MSE共享 ACLNN 的 RegBase 路径实际选择 MseLossGradV2,不能据该接口测试证明 MseLossGrad 内核已执行。 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/6623 ## 测试 - 静态检查通过:平台注册唯一性、CMake 平台映射、JSON 解析及21对配置一致性、差异范围、冲突标记和 git diff --check。 - pre-commit 全部适用检查通过:空白、末尾换行、JSON、大文件、冲突标记、私钥检测、clang-format及codespell;无适用文件的YAML/Python检查跳过。 - OAT 单独对完整76个交付文件列表执行扫描:默认排除22个JSON,实际扫描54个CMake/C++文件,0 issue;JSON已单独检查。 - 本地编译已执行。 - DVLite 真机验证已执行:精度pass。 配套 CANN 环境中加载实际 set_env.sh 后,可逐算子执行: bash bash build.sh --pkg --soc=ascend350 --ops=<算子目录名> --vendor_name=customize -j4 ## 文档更新 未修改仓库文档或产品支持矩阵;本 PR 描述记录适配范围、检查结果与待验证项。 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!11894 | 6 天前 | |
feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Co-authored-by: chaihailun<chaihailun@huawei.com> # message auto-generated for no-merge-commit merge: !11894 merge adapt-22-ops-ascend350 into master feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Created-by: chaihailun Commit-by: chaihailun Merged-by: cann-robot Description: ## 描述 为以下 22 个算子补齐 DVLite(ascend350)平台配置,以已有 ascend950 实现为基线,复用 arch35 构建路径: - optim:AdamApplyOne、AdamApplyOneWithDecay、AdamApplyOneWithDecayAssign、ApplyCamePart1–4、ApplyFtrl、ApplyMomentum。 - loss:KlDivLossGrad、MseLossGrad、SmoothL1LossGradV2、CrossEntropyLoss、CrossEntropyLossGrad、CTCLossV2、CTCLossV2Grad。 - conv:DeformableOffsets、DeformableOffsetsGrad。 - quant:DequantSwigluQuant、SwigluMxQuant、SwigluMxQuantWithDualAxis。 - activation:ClippedSwiglu。 适配内容: | 检查项 | 修改及检查结果 | |---|---| | 二进制配置 | 从同一基线的 ascend950 复制 21 份 binary JSON 至 ascend350,解析结构和值一致;ApplyCamePart2 沿用现有自动生成机制。 | | 信息库注册 | 22 个 def 追加 ascend350 注册,复用对应 ascend950 配置对象。 | | CMake | 必要的 host/tiling 映射增加 ascend350/arch35,kernel 平台白名单增加 ascend350;已覆盖的平台沿用公共机制。 | | ACLNN 平台判断 | 已检查入口、转调及 RegBase 判断;未修改 ACLNN 或平台判断。 | | 其他交付件 | 已检查资源查询、图路径、依赖、测试及打包路径;固定缓冲预算、指令能力和运行覆盖仍待验证,范围外问题未修改。 | | 公共编译配置 | 仅修改目标 OpType 的 19 个适用条目,补齐350平台及对应950编译选项;CrossEntropyLoss、ClippedSwiglu 补齐350的 auto_sync=false。 | 保留 master 的 ascend960dt/ascend960pr 等配置,以及 ApplyCamePart1 的显式 kernel 源码入口。未修改算法、tiling 策略或非350平台功能行为。PR 保持一个提交。 运行验证需重点确认 CTC/CAME 固定缓冲预算、CTC 平台回退、量化内核 FP8/同步指令,以及350测试选择。MSE共享 ACLNN 的 RegBase 路径实际选择 MseLossGradV2,不能据该接口测试证明 MseLossGrad 内核已执行。 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/6623 ## 测试 - 静态检查通过:平台注册唯一性、CMake 平台映射、JSON 解析及21对配置一致性、差异范围、冲突标记和 git diff --check。 - pre-commit 全部适用检查通过:空白、末尾换行、JSON、大文件、冲突标记、私钥检测、clang-format及codespell;无适用文件的YAML/Python检查跳过。 - OAT 单独对完整76个交付文件列表执行扫描:默认排除22个JSON,实际扫描54个CMake/C++文件,0 issue;JSON已单独检查。 - 本地编译已执行。 - DVLite 真机验证已执行:精度pass。 配套 CANN 环境中加载实际 set_env.sh 后,可逐算子执行: bash bash build.sh --pkg --soc=ascend350 --ops=<算子目录名> --vendor_name=customize -j4 ## 文档更新 未修改仓库文档或产品支持矩阵;本 PR 描述记录适配范围、检查结果与待验证项。 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!11894 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Co-authored-by: chaihailun<chaihailun@huawei.com> # message auto-generated for no-merge-commit merge: !11894 merge adapt-22-ops-ascend350 into master feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Created-by: chaihailun Commit-by: chaihailun Merged-by: cann-robot Description: ## 描述 为以下 22 个算子补齐 DVLite(ascend350)平台配置,以已有 ascend950 实现为基线,复用 arch35 构建路径: - optim:AdamApplyOne、AdamApplyOneWithDecay、AdamApplyOneWithDecayAssign、ApplyCamePart1–4、ApplyFtrl、ApplyMomentum。 - loss:KlDivLossGrad、MseLossGrad、SmoothL1LossGradV2、CrossEntropyLoss、CrossEntropyLossGrad、CTCLossV2、CTCLossV2Grad。 - conv:DeformableOffsets、DeformableOffsetsGrad。 - quant:DequantSwigluQuant、SwigluMxQuant、SwigluMxQuantWithDualAxis。 - activation:ClippedSwiglu。 适配内容: | 检查项 | 修改及检查结果 | |---|---| | 二进制配置 | 从同一基线的 ascend950 复制 21 份 binary JSON 至 ascend350,解析结构和值一致;ApplyCamePart2 沿用现有自动生成机制。 | | 信息库注册 | 22 个 def 追加 ascend350 注册,复用对应 ascend950 配置对象。 | | CMake | 必要的 host/tiling 映射增加 ascend350/arch35,kernel 平台白名单增加 ascend350;已覆盖的平台沿用公共机制。 | | ACLNN 平台判断 | 已检查入口、转调及 RegBase 判断;未修改 ACLNN 或平台判断。 | | 其他交付件 | 已检查资源查询、图路径、依赖、测试及打包路径;固定缓冲预算、指令能力和运行覆盖仍待验证,范围外问题未修改。 | | 公共编译配置 | 仅修改目标 OpType 的 19 个适用条目,补齐350平台及对应950编译选项;CrossEntropyLoss、ClippedSwiglu 补齐350的 auto_sync=false。 | 保留 master 的 ascend960dt/ascend960pr 等配置,以及 ApplyCamePart1 的显式 kernel 源码入口。未修改算法、tiling 策略或非350平台功能行为。PR 保持一个提交。 运行验证需重点确认 CTC/CAME 固定缓冲预算、CTC 平台回退、量化内核 FP8/同步指令,以及350测试选择。MSE共享 ACLNN 的 RegBase 路径实际选择 MseLossGradV2,不能据该接口测试证明 MseLossGrad 内核已执行。 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/6623 ## 测试 - 静态检查通过:平台注册唯一性、CMake 平台映射、JSON 解析及21对配置一致性、差异范围、冲突标记和 git diff --check。 - pre-commit 全部适用检查通过:空白、末尾换行、JSON、大文件、冲突标记、私钥检测、clang-format及codespell;无适用文件的YAML/Python检查跳过。 - OAT 单独对完整76个交付文件列表执行扫描:默认排除22个JSON,实际扫描54个CMake/C++文件,0 issue;JSON已单独检查。 - 本地编译已执行。 - DVLite 真机验证已执行:精度pass。 配套 CANN 环境中加载实际 set_env.sh 后,可逐算子执行: bash bash build.sh --pkg --soc=ascend350 --ops=<算子目录名> --vendor_name=customize -j4 ## 文档更新 未修改仓库文档或产品支持矩阵;本 PR 描述记录适配范围、检查结果与待验证项。 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!11894 | 6 天前 | |
feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Co-authored-by: chaihailun<chaihailun@huawei.com> # message auto-generated for no-merge-commit merge: !11894 merge adapt-22-ops-ascend350 into master feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Created-by: chaihailun Commit-by: chaihailun Merged-by: cann-robot Description: ## 描述 为以下 22 个算子补齐 DVLite(ascend350)平台配置,以已有 ascend950 实现为基线,复用 arch35 构建路径: - optim:AdamApplyOne、AdamApplyOneWithDecay、AdamApplyOneWithDecayAssign、ApplyCamePart1–4、ApplyFtrl、ApplyMomentum。 - loss:KlDivLossGrad、MseLossGrad、SmoothL1LossGradV2、CrossEntropyLoss、CrossEntropyLossGrad、CTCLossV2、CTCLossV2Grad。 - conv:DeformableOffsets、DeformableOffsetsGrad。 - quant:DequantSwigluQuant、SwigluMxQuant、SwigluMxQuantWithDualAxis。 - activation:ClippedSwiglu。 适配内容: | 检查项 | 修改及检查结果 | |---|---| | 二进制配置 | 从同一基线的 ascend950 复制 21 份 binary JSON 至 ascend350,解析结构和值一致;ApplyCamePart2 沿用现有自动生成机制。 | | 信息库注册 | 22 个 def 追加 ascend350 注册,复用对应 ascend950 配置对象。 | | CMake | 必要的 host/tiling 映射增加 ascend350/arch35,kernel 平台白名单增加 ascend350;已覆盖的平台沿用公共机制。 | | ACLNN 平台判断 | 已检查入口、转调及 RegBase 判断;未修改 ACLNN 或平台判断。 | | 其他交付件 | 已检查资源查询、图路径、依赖、测试及打包路径;固定缓冲预算、指令能力和运行覆盖仍待验证,范围外问题未修改。 | | 公共编译配置 | 仅修改目标 OpType 的 19 个适用条目,补齐350平台及对应950编译选项;CrossEntropyLoss、ClippedSwiglu 补齐350的 auto_sync=false。 | 保留 master 的 ascend960dt/ascend960pr 等配置,以及 ApplyCamePart1 的显式 kernel 源码入口。未修改算法、tiling 策略或非350平台功能行为。PR 保持一个提交。 运行验证需重点确认 CTC/CAME 固定缓冲预算、CTC 平台回退、量化内核 FP8/同步指令,以及350测试选择。MSE共享 ACLNN 的 RegBase 路径实际选择 MseLossGradV2,不能据该接口测试证明 MseLossGrad 内核已执行。 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/6623 ## 测试 - 静态检查通过:平台注册唯一性、CMake 平台映射、JSON 解析及21对配置一致性、差异范围、冲突标记和 git diff --check。 - pre-commit 全部适用检查通过:空白、末尾换行、JSON、大文件、冲突标记、私钥检测、clang-format及codespell;无适用文件的YAML/Python检查跳过。 - OAT 单独对完整76个交付文件列表执行扫描:默认排除22个JSON,实际扫描54个CMake/C++文件,0 issue;JSON已单独检查。 - 本地编译已执行。 - DVLite 真机验证已执行:精度pass。 配套 CANN 环境中加载实际 set_env.sh 后,可逐算子执行: bash bash build.sh --pkg --soc=ascend350 --ops=<算子目录名> --vendor_name=customize -j4 ## 文档更新 未修改仓库文档或产品支持矩阵;本 PR 描述记录适配范围、检查结果与待验证项。 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!11894 | 6 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Co-authored-by: chaihailun<chaihailun@huawei.com> # message auto-generated for no-merge-commit merge: !11894 merge adapt-22-ops-ascend350 into master feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Created-by: chaihailun Commit-by: chaihailun Merged-by: cann-robot Description: ## 描述 为以下 22 个算子补齐 DVLite(ascend350)平台配置,以已有 ascend950 实现为基线,复用 arch35 构建路径: - optim:AdamApplyOne、AdamApplyOneWithDecay、AdamApplyOneWithDecayAssign、ApplyCamePart1–4、ApplyFtrl、ApplyMomentum。 - loss:KlDivLossGrad、MseLossGrad、SmoothL1LossGradV2、CrossEntropyLoss、CrossEntropyLossGrad、CTCLossV2、CTCLossV2Grad。 - conv:DeformableOffsets、DeformableOffsetsGrad。 - quant:DequantSwigluQuant、SwigluMxQuant、SwigluMxQuantWithDualAxis。 - activation:ClippedSwiglu。 适配内容: | 检查项 | 修改及检查结果 | |---|---| | 二进制配置 | 从同一基线的 ascend950 复制 21 份 binary JSON 至 ascend350,解析结构和值一致;ApplyCamePart2 沿用现有自动生成机制。 | | 信息库注册 | 22 个 def 追加 ascend350 注册,复用对应 ascend950 配置对象。 | | CMake | 必要的 host/tiling 映射增加 ascend350/arch35,kernel 平台白名单增加 ascend350;已覆盖的平台沿用公共机制。 | | ACLNN 平台判断 | 已检查入口、转调及 RegBase 判断;未修改 ACLNN 或平台判断。 | | 其他交付件 | 已检查资源查询、图路径、依赖、测试及打包路径;固定缓冲预算、指令能力和运行覆盖仍待验证,范围外问题未修改。 | | 公共编译配置 | 仅修改目标 OpType 的 19 个适用条目,补齐350平台及对应950编译选项;CrossEntropyLoss、ClippedSwiglu 补齐350的 auto_sync=false。 | 保留 master 的 ascend960dt/ascend960pr 等配置,以及 ApplyCamePart1 的显式 kernel 源码入口。未修改算法、tiling 策略或非350平台功能行为。PR 保持一个提交。 运行验证需重点确认 CTC/CAME 固定缓冲预算、CTC 平台回退、量化内核 FP8/同步指令,以及350测试选择。MSE共享 ACLNN 的 RegBase 路径实际选择 MseLossGradV2,不能据该接口测试证明 MseLossGrad 内核已执行。 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/6623 ## 测试 - 静态检查通过:平台注册唯一性、CMake 平台映射、JSON 解析及21对配置一致性、差异范围、冲突标记和 git diff --check。 - pre-commit 全部适用检查通过:空白、末尾换行、JSON、大文件、冲突标记、私钥检测、clang-format及codespell;无适用文件的YAML/Python检查跳过。 - OAT 单独对完整76个交付文件列表执行扫描:默认排除22个JSON,实际扫描54个CMake/C++文件,0 issue;JSON已单独检查。 - 本地编译已执行。 - DVLite 真机验证已执行:精度pass。 配套 CANN 环境中加载实际 set_env.sh 后,可逐算子执行: bash bash build.sh --pkg --soc=ascend350 --ops=<算子目录名> --vendor_name=customize -j4 ## 文档更新 未修改仓库文档或产品支持矩阵;本 PR 描述记录适配范围、检查结果与待验证项。 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!11894 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
修改产品名 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11348 merge master into master 修改产品名 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 修改产品名 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 仅涉及md文档更新,不涉及测试 ## 文档更新 修改所有md文件的产品名称 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11348 | 22 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Co-authored-by: chaihailun<chaihailun@huawei.com> # message auto-generated for no-merge-commit merge: !11894 merge adapt-22-ops-ascend350 into master feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Created-by: chaihailun Commit-by: chaihailun Merged-by: cann-robot Description: ## 描述 为以下 22 个算子补齐 DVLite(ascend350)平台配置,以已有 ascend950 实现为基线,复用 arch35 构建路径: - optim:AdamApplyOne、AdamApplyOneWithDecay、AdamApplyOneWithDecayAssign、ApplyCamePart1–4、ApplyFtrl、ApplyMomentum。 - loss:KlDivLossGrad、MseLossGrad、SmoothL1LossGradV2、CrossEntropyLoss、CrossEntropyLossGrad、CTCLossV2、CTCLossV2Grad。 - conv:DeformableOffsets、DeformableOffsetsGrad。 - quant:DequantSwigluQuant、SwigluMxQuant、SwigluMxQuantWithDualAxis。 - activation:ClippedSwiglu。 适配内容: | 检查项 | 修改及检查结果 | |---|---| | 二进制配置 | 从同一基线的 ascend950 复制 21 份 binary JSON 至 ascend350,解析结构和值一致;ApplyCamePart2 沿用现有自动生成机制。 | | 信息库注册 | 22 个 def 追加 ascend350 注册,复用对应 ascend950 配置对象。 | | CMake | 必要的 host/tiling 映射增加 ascend350/arch35,kernel 平台白名单增加 ascend350;已覆盖的平台沿用公共机制。 | | ACLNN 平台判断 | 已检查入口、转调及 RegBase 判断;未修改 ACLNN 或平台判断。 | | 其他交付件 | 已检查资源查询、图路径、依赖、测试及打包路径;固定缓冲预算、指令能力和运行覆盖仍待验证,范围外问题未修改。 | | 公共编译配置 | 仅修改目标 OpType 的 19 个适用条目,补齐350平台及对应950编译选项;CrossEntropyLoss、ClippedSwiglu 补齐350的 auto_sync=false。 | 保留 master 的 ascend960dt/ascend960pr 等配置,以及 ApplyCamePart1 的显式 kernel 源码入口。未修改算法、tiling 策略或非350平台功能行为。PR 保持一个提交。 运行验证需重点确认 CTC/CAME 固定缓冲预算、CTC 平台回退、量化内核 FP8/同步指令,以及350测试选择。MSE共享 ACLNN 的 RegBase 路径实际选择 MseLossGradV2,不能据该接口测试证明 MseLossGrad 内核已执行。 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/6623 ## 测试 - 静态检查通过:平台注册唯一性、CMake 平台映射、JSON 解析及21对配置一致性、差异范围、冲突标记和 git diff --check。 - pre-commit 全部适用检查通过:空白、末尾换行、JSON、大文件、冲突标记、私钥检测、clang-format及codespell;无适用文件的YAML/Python检查跳过。 - OAT 单独对完整76个交付文件列表执行扫描:默认排除22个JSON,实际扫描54个CMake/C++文件,0 issue;JSON已单独检查。 - 本地编译已执行。 - DVLite 真机验证已执行:精度pass。 配套 CANN 环境中加载实际 set_env.sh 后,可逐算子执行: bash bash build.sh --pkg --soc=ascend350 --ops=<算子目录名> --vendor_name=customize -j4 ## 文档更新 未修改仓库文档或产品支持矩阵;本 PR 描述记录适配范围、检查结果与待验证项。 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!11894 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
feat: 为7个elementwise算子补齐DVLite(ascend350)适配 Co-authored-by: chaihailun<chaihailun@huawei.com> # message auto-generated for no-merge-commit merge: !11625 merge adapt-elewise-ascend350 into master feat: 为7个elementwise算子补齐DVLite(ascend350)适配 Created-by: chaihailun Commit-by: chaihailun Merged-by: cann-robot Description: ## 描述 为 ApplyAdamD、ApplyAdamW、LpLoss、MseLoss、SmoothL1LossV2、L1LossGrad、SigmoidCrossEntropyWithLogits 补齐 DVLite(ascend350)平台配置。 - 350复用当前基线的950注册配置及arch35 host/tiling/kernel实现;为有950 binary JSON的6个算子增加逐字节一致的350副本,MseLoss保留自动生成机制。 - 公共ascendc_config仅补上述7个OpType的350平台及对应950编译选项。 - LpLoss、L1LossGrad的ACLNN BF16校验增加明确DAV_3510条件,保留其他架构原有枚举区间行为。 - MseLoss在350上保留MseLoss路径,不转调未适配350的MSELossV2;公共ST脚本、golden、额外算子及支持文档未修改。 ## 关联的Issue [https://gitcode.com/cann/ops-nn/issues/6604](https://gitcode.com/cann/ops-nn/issues/6604) ## 测试 - 通过:git diff --check、JSON解析、6组950/350 binary JSON逐字节及结构一致性、注册与平台配置唯一性、CMake平台/tiling目录映射及源码路径、350/950编译选项一致性。 - 通过:两处BF16条件各20组静态真值检查(不等于C++ UT)。 - 已在DVLite环境验证通过 复现编译(安装依赖并加载实际CANN环境后,将<op>替换为对应snake_case算子名): bash bash build.sh --pkg --soc=ascend350 --ops=<op> --vendor_name=customize -j4 bash build.sh -u --opapi --soc=ascend350 --ops=lp_loss,l1_loss_grad -j4 ## 文档更新 无;未增加未经真机验证的产品支持声明。 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!11625 | 8 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Co-authored-by: chaihailun<chaihailun@huawei.com> # message auto-generated for no-merge-commit merge: !11894 merge adapt-22-ops-ascend350 into master feat: adapt 22 optim, loss, conv, quant and activation operators to ascend350 Created-by: chaihailun Commit-by: chaihailun Merged-by: cann-robot Description: ## 描述 为以下 22 个算子补齐 DVLite(ascend350)平台配置,以已有 ascend950 实现为基线,复用 arch35 构建路径: - optim:AdamApplyOne、AdamApplyOneWithDecay、AdamApplyOneWithDecayAssign、ApplyCamePart1–4、ApplyFtrl、ApplyMomentum。 - loss:KlDivLossGrad、MseLossGrad、SmoothL1LossGradV2、CrossEntropyLoss、CrossEntropyLossGrad、CTCLossV2、CTCLossV2Grad。 - conv:DeformableOffsets、DeformableOffsetsGrad。 - quant:DequantSwigluQuant、SwigluMxQuant、SwigluMxQuantWithDualAxis。 - activation:ClippedSwiglu。 适配内容: | 检查项 | 修改及检查结果 | |---|---| | 二进制配置 | 从同一基线的 ascend950 复制 21 份 binary JSON 至 ascend350,解析结构和值一致;ApplyCamePart2 沿用现有自动生成机制。 | | 信息库注册 | 22 个 def 追加 ascend350 注册,复用对应 ascend950 配置对象。 | | CMake | 必要的 host/tiling 映射增加 ascend350/arch35,kernel 平台白名单增加 ascend350;已覆盖的平台沿用公共机制。 | | ACLNN 平台判断 | 已检查入口、转调及 RegBase 判断;未修改 ACLNN 或平台判断。 | | 其他交付件 | 已检查资源查询、图路径、依赖、测试及打包路径;固定缓冲预算、指令能力和运行覆盖仍待验证,范围外问题未修改。 | | 公共编译配置 | 仅修改目标 OpType 的 19 个适用条目,补齐350平台及对应950编译选项;CrossEntropyLoss、ClippedSwiglu 补齐350的 auto_sync=false。 | 保留 master 的 ascend960dt/ascend960pr 等配置,以及 ApplyCamePart1 的显式 kernel 源码入口。未修改算法、tiling 策略或非350平台功能行为。PR 保持一个提交。 运行验证需重点确认 CTC/CAME 固定缓冲预算、CTC 平台回退、量化内核 FP8/同步指令,以及350测试选择。MSE共享 ACLNN 的 RegBase 路径实际选择 MseLossGradV2,不能据该接口测试证明 MseLossGrad 内核已执行。 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/6623 ## 测试 - 静态检查通过:平台注册唯一性、CMake 平台映射、JSON 解析及21对配置一致性、差异范围、冲突标记和 git diff --check。 - pre-commit 全部适用检查通过:空白、末尾换行、JSON、大文件、冲突标记、私钥检测、clang-format及codespell;无适用文件的YAML/Python检查跳过。 - OAT 单独对完整76个交付文件列表执行扫描:默认排除22个JSON,实际扫描54个CMake/C++文件,0 issue;JSON已单独检查。 - 本地编译已执行。 - DVLite 真机验证已执行:精度pass。 配套 CANN 环境中加载实际 set_env.sh 后,可逐算子执行: bash bash build.sh --pkg --soc=ascend350 --ops=<算子目录名> --vendor_name=customize -j4 ## 文档更新 未修改仓库文档或产品支持矩阵;本 PR 描述记录适配范围、检查结果与待验证项。 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!11894 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
删除查看源码 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !12004 merge master into master 删除查看源码 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 删除查看源码 ## 关联的Issue 关联Issue [#6694](https://gitcode.com/cann/ops-nn/issues/6694) ## 测试 无需测试 ## 文档更新 删除文档中的查看源码链接 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12004 | 6 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
产品名称修改 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !11292 merge master into master 产品名称修改 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 产品名称修改 ## 关联的Issue 关联Issue [#6089](https://gitcode.com/cann/ops-nn/issues/6089) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!11292 | 23 天前 | |
[agent] [Bug-Report|缺陷反馈]: SparseSoftmaxCrossEntropyWithLogits 接受不符合契约的 features rank Co-authored-by: huang-qiang<huangqiang3@huawei.com> # message auto-generated for no-merge-commit merge: !11936 merge agent/issue-110 into master [agent] [Bug-Report|缺陷反馈]: SparseSoftmaxCrossEntropyWithLogits 接受不符合契约的 features rank Created-by: huang-qiang Commit-by: huang-qiang Merged-by: cann-robot Description: 由 agent 自动创建。 ## 任务总结 我已成功完成 issue # 6569 的 Bug 修复。 **修复内容**: - **算子**:SparseSoftmaxCrossEntropyWithLogits - **问题**:InferShape 接受不符合契约的 features rank(允许 rank-1 而非二维矩阵) - **根因**:缺少 features.rank >= 2 的校验 - **修复**:在维数差检查前增加二维校验,拒绝 rank-1 及以下的 features **代码变更**: 1. sparse_softmax_cross_entropy_with_logits_infershape.cpp:增加 2 行校验代码 2. test_sparse_softmax_cross_entropy_with_logits_infershape.cpp:新增回归测试用例 **质量保证**: - ✅ 所有 pre-commit 校验通过(clang-format, codespell, OAT) - ✅ 代码符合 CANN 社区规范 - ✅ 测试覆盖正常场景和异常场景 - ✅ 已提交到 agent/issue-110 分支(commit cfb7c98c0) **下一步**: - 代码已提交到本地分支,runner 会自动推送到 fork 仓库并创建 PR - PR 创建后会关联到 issue # 6569 - 无需手动 push 或创建 PR TASK_COMPLETE See merge request: cann/ops-nn!11936 | 6 天前 | |
代码同步 Co-authored-by: yang-di52<yangdi52@huawei.com> # message auto-generated for no-merge-commit merge: !450 merge master into master 代码同步 Created-by: yang-di52 Commit-by: yang-di52 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!450 | 9 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 6 天前 | ||
| 6 天前 | ||
| 23 天前 | ||
| 6 天前 | ||
| 30 天前 | ||
| 12 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 23 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 23 天前 | ||
| 23 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 22 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 23 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 23 天前 | ||
| 8 天前 | ||
| 23 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 23 天前 | ||
| 23 天前 | ||
| 23 天前 | ||
| 23 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 6 天前 | ||
| 23 天前 | ||
| 23 天前 | ||
| 6 天前 | ||
| 9 个月前 |