已合并
delete dropout effect #45754
lihui创建于 29 天前
delete dropout effect #45754
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 lihui 的贡献)atomgit-bot
29 天前 评论:
29 天前 评论:
变更摘要
本 PR 旨在删除 dropout 的有副作用(effect)注册逻辑,标题为 "delete dropout effect"。改动仅涉及 benchmarks/torchbench/npu_support.py 一个文件,纯删除 9 行代码:在 _patch_model_24() 函数中移除了将 torch.ops.aten.native_dropout.default 注册为 _EffectType.ORDERED 类型 effectful 操作的调用,同时删除了对应的 from torch._higher_order_ops.effects import (_EffectType, _register_effectful_op) 导入语句。改动后 dropout 算子不再被标记为有序副作用操作,相关的 effect 注册逻辑被移除。
主要改动
- 删除 dropout effect 注册调用: 移除
_patch_model_24()中对torch.ops.aten.native_dropout.default调用_register_effectful_op(..., _EffectType.ORDERED)的代码,使该算子不再作为ORDERED类型的有序 effect 被注册。 - 清理相关导入: 删除对
torch._higher_order_ops.effects中_EffectType与_register_effectful_op两个符号的from导入语句,使代码与已删除的注册逻辑保持一致。


不准确?
atomgit-bot
29 天前 评论:
29 天前 评论:
lihui
29 天前 评论:
29 天前 评论:
compile


29 天前 添加了label:ascend-cla/yes
此处折叠了44条消息 查看更多
24 天前 删除了label:ci-pipeline-running
24 天前 添加了label:ci-pipeline-passed
AtlasAccount
24 天前 评论:
24 天前 评论:
流水线 PR-pipeline_pytorch#66500 [ commitID:1c81fe62 ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | Build_X86 | ✅ COMPLETED | >>> |
| Build_ARM | ✅ COMPLETED | >>> | |
| Build_X86_torchair | ⚪ IGNORED | >>> | |
| Build_ARM_torchair | ⚪ IGNORED | >>> | |
| patch_test | ⚪ IGNORED | >>> | |
| Build_X86_213 | ⚪ IGNORED | >>> | |
| Build_ARM_213 | ⚪ IGNORED | >>> | |
| 恶意代码检查 | Antipoison | ✅ COMPLETED | >>> |
| 编码安全与规范检查 | codecheck_pre-commit | ✅ COMPLETED | >>> |
| check_error | ✅ COMPLETED | >>> | |
| lintrunner | ✅ COMPLETED | >>> | |
| 开源片段检查 | SCA | ✅ COMPLETED | >>> |
| 开发者测试 | UT_ARM_A3_Part_01 | ⚪ IGNORED | >>> |
| UT_ARM_A3_Part_02 | ⚪ IGNORED | >>> | |
| UT_ARM_A2_Part_01 | ✅ COMPLETED | >>> | |
| UT_ARM_A2_Part_02 | ✅ COMPLETED | >>> | |
| UT_ARM_A2_Part_03 | ✅ COMPLETED | >>> | |
| UT_inductor_Part_01 | ⚪ IGNORED | >>> | |
| UT_inductor_Part_02 | ⚪ IGNORED | >>> | |
| UT_inductor_Part_03 | ⚪ IGNORED | >>> | |
| UT_inductor_Part_04 | ⚪ IGNORED | >>> | |
| UT_DIST_ARM_Part_01 | ⚪ IGNORED | >>> | |
| UT_DIST_ARM_Part_02 | ⚪ IGNORED | >>> | |
| UT_DIST_ARM_Part_03 | ⚪ IGNORED | >>> | |
| UT_DIST_ARM_Part_04 | ⚪ IGNORED | >>> | |
| UT_ARM_A2_Select_Part_01 | ✅ COMPLETED | >>> | |
| UT_ARM_A2_Select_Part_02 | ✅ COMPLETED | >>> | |
| UT_inductor_Part_213 | ⚪ IGNORED | >>> | |
| 流水线 | PR-pipeline_pytorch | ✅ COMPLETED | >>> |
- compile、compile_inductor、compile_torchair : 运行流水线
- retry : 重试流水线所有失败子任务
- retry <任务名> : 仅重试指定失败子任务
- stop : 停止流水线


24 天前 合入了pull request
AtlasAccount
24 天前 评论:
24 天前 评论:
流水线 pytorch_gitcode_PR_multiVersion#15056 [ commitID:1c81fe62 ] 已完成


【合入来源】
【修改方案】
【资料变更】
【接口变更】
【功能验证】
【CheckList】