已合并
test: sync dynamo compile cache tests to v2.12.0 #37711
wangzili121创建于 6月5日
test: sync dynamo compile cache tests to v2.12.0 #37711
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 wangzili121 的贡献)6月5日 创建了 pull request,commit a99c8085
ascend-robot
6月5日 评论:
6月5日 评论:
test/_inductor/test_codecache.py
@@ -2,8 +6,11 @@
6+import shutil
7+import unittest
8+
29import torch
3-from torch.testing._internal.common_utils import run_tests
4-from torch._inductor.codecache import CacheBase
5-from testutils import TestUtils
6-import torch_npu
7-import torch_npu._inductor
10+import torch_npu # noqa: F401
11+import torch_npu._inductor # noqa: F401
12+from torch._dynamo.package import DynamoCache
【openlibing.ci】识别到代码检查告警抑制注释,匹配工具:flake8,请Committer检视其合理性。


test/_inductor/test_codecache.py
@@ -2,8 +6,11 @@
6+import shutil
7+import unittest
8+
29import torch
3-from torch.testing._internal.common_utils import run_tests
4-from torch._inductor.codecache import CacheBase
5-from testutils import TestUtils
6-import torch_npu
7-import torch_npu._inductor
10+import torch_npu # noqa: F401
11+import torch_npu._inductor # noqa: F401
12+from torch._dynamo.package import DynamoCache
【openlibing.ci】识别到代码检查告警抑制注释,匹配工具:flake8,请Committer检视其合理性。


test/_inductor/test_codecache.py
@@ -2,7 +7,11 @@
7+import unittest
8+
29import torch
3-from torch.testing._internal.common_utils import run_tests
4-from torch._inductor.codecache import CacheBase
5-from testutils import TestUtils
6-import torch_npu
7-import torch_npu._inductor
10+import torch_npu # noqa: F401
11+import torch_npu._inductor # noqa: F401
12+from torch._dynamo.package import DynamoCache
13+from torch._dynamo.precompile_context import PrecompileContext
【openlibing.ci】识别到代码检查告警抑制注释,匹配工具:flake8,请Committer检视其合理性。


此处折叠了51条消息 查看更多
6月8日 添加了label:ci-pipeline-passed
ascend-robot
6月8日 评论:
6月8日 评论:
流水线 PR-pipeline_pytorch#30248 已完成
| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | Build_X86 | ✅ | >>> |
| Build_ARM | ✅ | >>> | |
| Build_LibTorch_x86 | ✅ | >>> | |
| Build_LibTorch_ARM | ✅ | >>> | |
| Build_X86_torchair | 🛑 | >>> | |
| Build_ARM_torchair | 🛑 | >>> | |
| patch_test | 🛑 | >>> | |
| 恶意代码检查 | Antipoison | ✅ | >>> |
| 编码安全与规范检查 | CodeCheck | ✅ | >>> |
| check_error | ✅ | >>> | |
| CodeCheck_lintrunner | ✅ | >>> | |
| 开源片段检查 | SCA | ✅ | >>> |
| 开发者测试 | UT_X86_Part_01 | 🛑 | >>> |
| UT_X86_Part_02 | 🛑 | >>> | |
| UT_ARM_A3_Part_01 | 🛑 | >>> | |
| UT_ARM_A3_Part_02 | 🛑 | >>> | |
| UT_ARM_A2_Part_01 | ✅ | >>> | |
| UT_ARM_A2_Part_02 | ✅ | >>> | |
| UT_ARM_A2_Part_03 | ✅ | >>> | |
| UT_inductor_Part_01 | 🛑 | >>> | |
| UT_inductor_Part_02 | 🛑 | >>> | |
| UT_inductor_Part_03 | 🛑 | >>> | |
| UT_inductor_Part_04 | 🛑 | >>> | |
| UT_DIST_ARM_Part_01 | 🛑 | >>> | |
| UT_DIST_ARM_Part_02 | 🛑 | >>> | |
| UT_DIST_ARM_Part_03 | 🛑 | >>> | |
| UT_DIST_ARM_Part_04 | 🛑 | >>> | |
| UT_ARM_A2_Select_Part_01 | ✅ | >>> | |
| UT_ARM_A2_Select_Part_02 | ✅ | >>> | |
| 流水线 | PR-pipeline_pytorch | ✅ | >>> |


6月8日 合入了pull request
ascend-robot
6月8日 评论:
6月8日 评论:
Pull Request 已合并或已关闭。
If you want to solve this problem, you can click here to do it in the FAQs.


ascend-robot
6月8日 评论:
6月8日 评论:
流水线 pytorch_gitcode_PR_multiVersion#10184 [ commitID:cd2fafe8 ] 已完成


【合入来源】
【修改方案】
"基于 torch_npu 2.10 + 版本完成 dynamo 编译缓存适配"需求的单测在v2.12.0版本上报错,现已解决,将相应用例同步到高版本看护
test/dynamo/test_package.py
test/dynamo/test_precompile_context.py
test/dynamo/test_guard_serialization.py
test/_inductor/test_codecache.py
【资料变更】
不涉及
【接口变更】
不涉及
【功能验证】
本地验证用例均通过
【CheckList】