| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
AI assist developer for python DT master Co-authored-by: deepSeekya<chenzhihan6@huawei.com> # message auto-generated for no-merge-commit merge: !26305 merge master into master AI assist developer for python DT master Created-by: deepSeekya Commit-by: deepSeekya Merged-by: ascend-robot Description: 【合入说明】 AI辅助研发python dt测试用例生成。 【合入来源】 AI辅助研发需求 dt测试文件覆盖率提升。 See merge request: Ascend/pytorch!26305 | 9 个月前 | |
rename test_contrib/test_network_ops/test_custom_ops/test_trans_contiguous | 2 年前 | |
Add python test cases for torch_npu Co-authored-by: aksksks<mengzichao@h-partners.com> # message auto-generated for no-merge-commit merge: !26226 merge cherry-pick-mr-26152-1762155864192-auto into master Add python test cases for torch_npu Created-by: aksksks Commit-by: aksksks Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!26226 | 9 个月前 | |
| 1 年前 | ||
Skip failing torch official TestCase tests and disable unsupported test cases Co-authored-by: yuhaiyan<yuhaiyan8@huawei.com> Co-authored-by: yuhaiyan8<yuhaiyan8@h-partners.com> # message auto-generated for no-merge-commit merge: !32140 merge cherry-pick-mr-32139-1774073503832-auto into master Skip failing torch official TestCase tests and disable unsupported test cases Created-by: yuhaiyan Commit-by: yuhaiyan;yuhaiyan8 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 1. 暂时跳过失败用例 2. 已提单跟进修复 # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” # 【功能验证】 > 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\ > 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [ ] 代码注释完备,正确记录错误日志 - [ ] 代码实现进行了返回值、空指针等校验 - [ ] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!32140 | 4 个月前 | |
Add python test cases for torch_npu Co-authored-by: aksksks<mengzichao@h-partners.com> # message auto-generated for no-merge-commit merge: !26226 merge cherry-pick-mr-26152-1762155864192-auto into master Add python test cases for torch_npu Created-by: aksksks Commit-by: aksksks Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!26226 | 9 个月前 | |
| 2 年前 | ||
| 1 年前 | ||
Add python test cases for torch_npu Co-authored-by: aksksks<mengzichao@h-partners.com> # message auto-generated for no-merge-commit merge: !26226 merge cherry-pick-mr-26152-1762155864192-auto into master Add python test cases for torch_npu Created-by: aksksks Commit-by: aksksks Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!26226 | 9 个月前 | |
将test_mish、test_silu等skip掉的用例重新补回来 Co-authored-by: xiaoqi-zhou<zhouxiaoqi9@h-partners.com> # message auto-generated for no-merge-commit merge: !33564 merge transfer_master into master 将test_mish、test_silu等skip掉的用例重新补回来 Created-by: xiaoqi-zhou Commit-by: xiaoqi-zhou Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [x] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 之前test_mish、test_silu、test_EnsembleDropout、test_npu_roi_align_1等因为门禁机器问题以及用例构造有问题导致阻塞其他PR合入,需要下掉用例。 PR合入后,将这些用例补充回来。 # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 UT全部通过,门禁已过。 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [ ] 代码注释完备,正确记录错误日志 - [ ] 代码实现进行了返回值、空指针等校验 - [ ] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!33564 | 3 个月前 | |
AI assist developer for python DT master Co-authored-by: deepSeekya<chenzhihan6@huawei.com> # message auto-generated for no-merge-commit merge: !26305 merge master into master AI assist developer for python DT master Created-by: deepSeekya Commit-by: deepSeekya Merged-by: ascend-robot Description: 【合入说明】 AI辅助研发python dt测试用例生成。 【合入来源】 AI辅助研发需求 dt测试文件覆盖率提升。 See merge request: Ascend/pytorch!26305 | 9 个月前 | |
Add python test cases for torch_npu Co-authored-by: aksksks<mengzichao@h-partners.com> # message auto-generated for no-merge-commit merge: !26226 merge cherry-pick-mr-26152-1762155864192-auto into master Add python test cases for torch_npu Created-by: aksksks Commit-by: aksksks Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!26226 | 9 个月前 | |
【API一致性任务】test: add torch._C._host_emptyCache consistency cases on NPU Co-authored-by: cuiyunhao-2026<1830099122@qq.com> # message auto-generated for no-merge-commit merge: !43549 merge test-host-emptycache-npu-master into master 【API一致性任务】test: add torch._C._host_emptyCache consistency cases on NPU Created-by: cuiyunhao-2026 Commit-by: cuiyunhao-2026 Merged-by: ascend-robot Description: # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font> > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> 关联 Issue:https://gitcode.com/Ascend/pytorch/issues/2754 - [ ] 需求 - [ ] 问题单 - [x] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 适配 API: torch._C._host_emptyCache(torch-npu 已通过 torch_npu.contrib.transfer_to_npu 注入该镜像映射,但缺少独立的一致性验证用例,本 PR 自写用例补齐,按规范 1.3)。 **0. 按导师最新要求的保留判定** 导师公告:资料 PR 已全部打回,且不再接收 NPU 适配 patch 与非硬件相关 API 的新增用例。本 PR 经复核属于**硬件相关**用例,予以保留: - torch._C._host_emptyCache 是 torch-npu 通过 torch_npu.contrib.transfer_to_npu 注入的 **NPU 专属镜像映射**(绑定 torch._C._host_emptyCache = torch_npu._C._npu_hostEmptyCache),直接对应昇腾硬件的主机侧缓存释放路径,是典型的硬件相关接口; - 本用例验证该映射与 NPU 实现的一致性、可调用性及非法参数的 TypeError 拒绝,属于规范 1.2②「涉及硬件接口,在 test 目录新增用例」的保留范围,**不属于被关闭的非硬件相关用例**; - 本 PR 为 test/ 自写用例,非 test_upstream NPU 适配 patch,符合"不再接收 NPU 适配 patch"的要求。 **1. 上游社区用例情况分析** torch._C._host_emptyCache 是 torch-npu 通过 torch_npu.contrib.transfer_to_npu 注入的 NPU 专属镜像映射(绑定 torch._C._host_emptyCache = torch_npu._C._npu_hostEmptyCache),并非 PyTorch 上游原生 API,上游社区无对应用例。仓库内现有 test/contrib/test_transfer_to_npu.py:399 的 test_host_empty_cache_is_patched 仅做一次性等式断言,未覆盖映射缺失时的优雅跳过与可调用性验证。 结论:该 API 属 NPU 侧自写用例场景,按规范 **1.3(test 目录自写用例)** 在 test/ 目录新增独立的一致性守护用例文件,不做 test_upstream patch、不做 API 补齐。 **2. NPU 适配方案** torch._C._host_emptyCache 由 import torch_npu.contrib.transfer_to_npu 注入(昇腾环境 import torch 自动导入 torch_npu,但映射需显式 import transfer_to_npu 触发,因此本用例保留该导入,符合规范 8.9「不导入不必要 torch_npu」的例外情形)。本 PR 仅补充用例,覆盖: - 映射一致性:torch._C._host_emptyCache 与 torch_npu._C._npu_hostEmptyCache 指向同一实现(self.assertEqual); - 可调用性:torch._C._host_emptyCache() 无参调用不抛异常,镜像 torch_npu.npu.empty_cache() 的主机缓存释放路径;非法位置/关键字参数必须被 TypeError 拒绝; - 映射缺失时以 self.skipTest(...) 优雅跳过,避免无该绑定环境误报。 **3. 提交方式(test 目录自写用例,规范 1.3)** 按规范 1.3,在 test/ 目录新增 test/contrib/test_host_empty_cache_api.py(同类 torch._C._* NPU 镜像映射一致性用例可归集于此,便于扩展)。文件遵循 torch-npu 测试规范:Huawei BSD-3 版权头、模块 docstring 说明用途与可扩展、从 torch.testing._internal.common_utils 导入 run_tests/TestCase(不直接 import unittest)、导入顺序 torch → torch.testing → torch_npu、类前后空 2 行、方法间空 1 行、self.assert* 断言、无 print / 无 try-except / 无裸 assert。 按规范 1.3,提交到 2.7.1 / 2.11.0 / 2.12.0 以及 master 四个分支。各分支基线对应目标分支 HEAD,新增文件内容逐字节一致。2.9.0 / 2.10.0 已转入维护阶段,不作补齐要求。 **4. API 补齐** 不需要。torch._C._host_emptyCache 由 torch_npu.contrib.transfer_to_npu 注入,本 PR 仅补充测试用例,不提交任何 API 实现代码(映射本身由 torch-npu 提供)。 **5. 多版本分支合入** | 目标分支 | PR | 说明 | |---------|--------|------| | v2.7.1 | https://gitcode.com/Ascend/pytorch/pull/43546 | test 自写用例 | | v2.11.0 | https://gitcode.com/Ascend/pytorch/pull/43547 | test 自写用例 | | v2.12.0 | https://gitcode.com/Ascend/pytorch/pull/43548 | test 自写用例 | | master | https://gitcode.com/Ascend/pytorch/pull/43549 | test 自写用例 | - 按规范 1.3(test 目录用例),**master 需要提交**。 - 2.9.0 / 2.10.0 已转入维护阶段,不作补齐要求。 # 【资料变更】 不涉及。 依据:torch._C._host_emptyCache 为 PyTorch 私有(下划线前缀)接口,且属 NPU 专属镜像映射,按规范 2.3「PyTorch 私有接口不需要补充资料」。经核查 docs/zh/native_apis/ 未收录该 API,故不在 PR 中补资料。 # 【接口变更】 不涉及。 依据:torch._C._host_emptyCache 由 torch-npu 注入的镜像映射提供,本 PR 仅补充测试用例,无跨代码仓或客户面可见接口变更。 # 【功能验证】 - 离线校验:用例已在真实 Ascend NPU(910B4)环境执行,全部通过; - 运行命令:python test/contrib/test_host_empty_cache_api.py; - 运行结果(NPU 实测): .. Ran 2 tests in 0.021s OK - 用例清单: - test_host_empty_cache_is_mapped —— PASSED - test_host_empty_cache_is_callable —— PASSED See merge request: Ascend/pytorch!43549 | 7 天前 | |
AI assist developer for python DT master Co-authored-by: deepSeekya<chenzhihan6@huawei.com> # message auto-generated for no-merge-commit merge: !26305 merge master into master AI assist developer for python DT master Created-by: deepSeekya Commit-by: deepSeekya Merged-by: ascend-robot Description: 【合入说明】 AI辅助研发python dt测试用例生成。 【合入来源】 AI辅助研发需求 dt测试文件覆盖率提升。 See merge request: Ascend/pytorch!26305 | 9 个月前 | |
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
del 910_95 Co-authored-by: MrMC-<shiqunze@h-partners.com> # message auto-generated for no-merge-commit merge: !30642 merge master-del-91095 into master del 910_95 Created-by: MrMC- Commit-by: MrMC- Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > A5改名需求 - [x] 需求 - [ ] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 删除910_95 # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 > 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\ > 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!30642 | 5 个月前 | |
| 1 年前 | ||
AI assist developer for python dt third batch for master Co-authored-by: deepSeekya<chenzhihan6@huawei.com> # message auto-generated for no-merge-commit merge: !26524 merge master into master AI assist developer for python dt third batch for master Created-by: deepSeekya Commit-by: deepSeekya Merged-by: ascend-robot Description: 【合入说明】 AI辅助研发python dt测试用例生成。 【合入来源】 AI辅助研发需求 dt测试文件覆盖率提升。 See merge request: Ascend/pytorch!26524 | 9 个月前 | |
AI assist developer for python DT master Co-authored-by: deepSeekya<chenzhihan6@huawei.com> # message auto-generated for no-merge-commit merge: !26305 merge master into master AI assist developer for python DT master Created-by: deepSeekya Commit-by: deepSeekya Merged-by: ascend-robot Description: 【合入说明】 AI辅助研发python dt测试用例生成。 【合入来源】 AI辅助研发需求 dt测试文件覆盖率提升。 See merge request: Ascend/pytorch!26305 | 9 个月前 | |
Add python test cases for torch_npu Co-authored-by: aksksks<mengzichao@h-partners.com> # message auto-generated for no-merge-commit merge: !26226 merge cherry-pick-mr-26152-1762155864192-auto into master Add python test cases for torch_npu Created-by: aksksks Commit-by: aksksks Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!26226 | 9 个月前 | |
将test_mish、test_silu等skip掉的用例重新补回来 Co-authored-by: xiaoqi-zhou<zhouxiaoqi9@h-partners.com> # message auto-generated for no-merge-commit merge: !33564 merge transfer_master into master 将test_mish、test_silu等skip掉的用例重新补回来 Created-by: xiaoqi-zhou Commit-by: xiaoqi-zhou Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [x] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 之前test_mish、test_silu、test_EnsembleDropout、test_npu_roi_align_1等因为门禁机器问题以及用例构造有问题导致阻塞其他PR合入,需要下掉用例。 PR合入后,将这些用例补充回来。 # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 UT全部通过,门禁已过。 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [ ] 代码注释完备,正确记录错误日志 - [ ] 代码实现进行了返回值、空指针等校验 - [ ] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!33564 | 3 个月前 | |
| 2 年前 | ||
| 1 年前 | ||
fix: patch is_autocast_enabled custom_fwd custom_bwd for npu in transfer_to_npu Co-authored-by: louyujing<louyujing@huawei.com> # message auto-generated for no-merge-commit merge: !45688 merge fix/transfer-to-npu-amp-master into master fix: patch is_autocast_enabled custom_fwd custom_bwd for npu in transfer_to_npu Created-by: louyujing Commit-by: louyujing Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> https://gitcode.com/Ascend/pytorch/issues/4528 # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [x] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 > 请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列\ > 如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容) 在 transfer_to_npu.py 的 _init() 中新增 5 个 patch,将 autocast 相关接口的 CUDA 路径重定向到 NPU: | 接口 | 适配方式 | |------|----------| | torch.is_autocast_enabled | 自定义 wrapper,无参或含 'cuda' 的 str → 'npu',其他透传 | | torch.get_autocast_dtype | _wrapper_cuda 包装,'cuda' → 'npu' | | torch.get_autocast_gpu_dtype | 直接替换为 torch_npu.npu.get_autocast_dtype | | torch.amp.custom_fwd | _wrapper_cuda 包装,device_type='cuda' → 'npu' | | torch.amp.custom_bwd | _wrapper_cuda 包装,device_type='cuda' → 'npu' | # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” 不涉及 # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” 不涉及 # 【功能验证】 > 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\ > 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图 ## 测试覆盖 在 test/contrib/test_transfer_to_npu.py 中新增 5 个 UT: - test_is_autocast_enabled:autocast 上下文内外、无参/'cuda'/'cuda:0'/'npu'/'cpu' 全覆盖 - test_amp_autocast_cuda_redirected:torch.amp.autocast('cuda') 重定向验证 - test_custom_fwd_bwd_cuda_device_type:custom_fwd/bwd(device_type='cuda') 检测并恢复 NPU autocast - test_custom_fwd_bwd_cuda_with_index:device_type='cuda:0' 场景 - test_get_autocast_dtype:get_autocast_dtype 和 get_autocast_gpu_dtype 在 bfloat16 autocast 内外验证 ## 自验结果 ### UT 结果 test_is_autocast_enabled .................. PASSED test_amp_autocast_cuda_redirected ........ PASSED test_custom_fwd_bwd_cuda_device_type ..... PASSED test_custom_fwd_bwd_cuda_with_index ..... PASSED test_get_autocast_dtype .................. PASSED 5 passed, 0 failed, 无回归 ### E2E 对比 | 接口 | 适配前 | 适配后 | |------|--------|--------| | is_autocast_enabled() (in autocast) | False | True | | is_autocast_enabled('cuda') (in autocast) | False | True | | is_autocast_enabled('cuda:0') (in autocast) | False | True | | is_autocast_enabled('npu') (in autocast) | True | True | | get_autocast_gpu_dtype() (in bf16 autocast) | float16 | bfloat16 | | get_autocast_dtype('cuda') (in bf16 autocast) | float16 | bfloat16 | | get_autocast_dtype('npu') (in bf16 autocast) | bfloat16 | bfloat16 | | torch.autocast('cuda') → is_autocast_enabled('npu') | False | True | | torch.amp.autocast('cuda') → is_autocast_enabled('npu') | False | True | | custom_fwd(device_type='cuda') detected autocast | False | True | | custom_bwd(device_type='cuda') autocast restored | True | True | 适配前受影响接口均返回 CUDA 状态(False/float16),适配后正确返回 NPU 状态(True/bfloat16)。'npu' 和 'cpu' 路径不受影响,无回归。 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!45688 | 4 天前 | |
fix doc for fuse_add_softmax_dropout Co-authored-by: bellatan<tanmei2@huawei.com> # message auto-generated for no-merge-commit merge: !40571 merge 0706_docs into master fix doc for fuse_add_softmax_dropout Created-by: bellatan Commit-by: bellatan Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> https://gitcode.com/Ascend/pytorch/issues/2774 - [ ] 需求 - [x] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [x] 资料更新 # 【修改方案】 | api名字 | 文档 | 问题 | 修改处 | |---|---|---|---| | torch_npu.contrib.function.fuse_add_softmax_dropout | fuse_add_softmax_dropout.py | docstring 示例代码把第五个入参写成 alpha,与接口参数 attn_head_size 不一致;调用中把 p 误传为 axis,且缺少 dim=axis,示例会误导用户。 | alpha = 0.125 改为 attn_head_size = 64;调用参数 alpha, p=axis 改为 attn_head_size, p=0.1, dim=axis。 | # 【资料变更】 修改内容如【修改方案】展示 # 【接口变更】 不涉及 # 【功能验证】 ci pass # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!40571 | 1 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 9 个月前 | ||
| 2 年前 | ||
| 9 个月前 | ||
| 1 年前 | ||
| 4 个月前 | ||
| 9 个月前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 9 个月前 | ||
| 3 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 7 天前 | ||
| 9 个月前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 5 个月前 | ||
| 1 年前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 3 个月前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 4 天前 | ||
| 1 个月前 |