已合并
新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 #38602
新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 #38602
已合并
yuanqi1104创建于 6月16日
yuanqi1104成员
6月16日

【合入来源】

如有社区issue,请关联issue链接
请勿携带内部流程信息(需求链接、问题单、内部issue等)

https://gitcode.com/Ascend/pytorch/issues/2402

【修改方案】

请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列
如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容)

新增torch_npu.npu.are_compatible_impl_enabledtorch_npu.npu.get_amp_supported_dtype接口的测试用例。

【资料变更】

请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及”

不涉及

【接口变更】

请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及”

不涉及

【功能验证】

说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤
新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图

已验证

【CheckList】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

  • [x ] 代码注释完备,正确记录错误日志
likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 yuanqi1104 的贡献)
Yyuanqi1104成员
6月16日 创建了 pull request,commit 5d1e692d
ascend-robotascend-robot成员
6月16日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
6月16日 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here
You can get sig-info at here


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
test chujinjin, htchu, 李伟, daifu1234567, medivh-x (5/2) chujinjin, htchu, 李伟 (3/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

yuanqi1104, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
ascend-robotascend-robot成员
6月16日 添加了label:needs-issue
此处折叠了85条消息 查看更多
ascend-robotascend-robot成员
6月18日 added a commit that referenced this pull request
  • b9d48380 - [sync] PR-38602: 新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 Co-authored-by: yuanqi1104 # message auto-generated for no-merge-commit merge: !38702 merge sync-pr38602-yuanqi_add_torch_npu_testcases-to-v2.10.0 into v2.10.0 [sync] PR-38602: 新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 Created-by: ascend-ds-bot Commit-by: yuanqi1104 Merged-by: ascend-robot Description: ### 1. Origin pull request: https://gitcode.com/Ascend/pytorch/merge_requests/38602 ### 2. Original pull request related issue(s): https://gitcode.com/Ascend/pytorch/issues/2402 ### 3. Original pull request related commit(s): | Sha | Datetime | Message | |---|---|---| |[3481c54f](https://gitcode.com/Ascend/pytorch/commit/3481c54f3cd388fe46ae989e0dcaaf21a8844c0c)|2026-06-16 20:01:41 +0800 CST|Add test case fot torch_npu
    | See merge request: Ascend/pytorch!38702
    • [#38602](https://gitcode.com/Ascend/pytorch/merge_requests/38602)
[Compare with previous version](https://gitcode.com/Ascend/pytorch/merge_requests/38602/diffs?diff_id=6483921&start_sha=d50a2cb64c5ec351461b5153da813334ddd53983
ascend-robotascend-robot成员
6月18日 added a commit that referenced this pull request
  • 26318a02 - [sync] PR-38602: 新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 Co-authored-by: yuanqi1104 # message auto-generated for no-merge-commit merge: !38703 merge sync-pr38602-yuanqi_add_torch_npu_testcases-to-v2.11.0 into v2.11.0 [sync] PR-38602: 新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 Created-by: ascend-ds-bot Commit-by: yuanqi1104 Merged-by: ascend-robot Description: ### 1. Origin pull request: https://gitcode.com/Ascend/pytorch/merge_requests/38602 ### 2. Original pull request related issue(s): https://gitcode.com/Ascend/pytorch/issues/2402 ### 3. Original pull request related commit(s): | Sha | Datetime | Message | |---|---|---| |[3481c54f](https://gitcode.com/Ascend/pytorch/commit/3481c54f3cd388fe46ae989e0dcaaf21a8844c0c)|2026-06-16 20:01:41 +0800 CST|Add test case fot torch_npu
    | See merge request: Ascend/pytorch!38703
    • [#38602](https://gitcode.com/Ascend/pytorch/merge_requests/38602)
[Compare with previous version](https://gitcode.com/Ascend/pytorch/merge_requests/38602/diffs?diff_id=6483921&start_sha=de0e81d8368ab72569649106cd47692e0e39cdd9
ascend-robotascend-robot成员
6月18日 added a commit that referenced this pull request
  • 33c15034 - [sync] PR-38602: 新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 Co-authored-by: yuanqi1104 # message auto-generated for no-merge-commit merge: !38704 merge sync-pr38602-yuanqi_add_torch_npu_testcases-to-v2.12.0 into v2.12.0 [sync] PR-38602: 新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 Created-by: ascend-ds-bot Commit-by: yuanqi1104 Merged-by: ascend-robot Description: ### 1. Origin pull request: https://gitcode.com/Ascend/pytorch/merge_requests/38602 ### 2. Original pull request related issue(s): https://gitcode.com/Ascend/pytorch/issues/2402 ### 3. Original pull request related commit(s): | Sha | Datetime | Message | |---|---|---| |[3481c54f](https://gitcode.com/Ascend/pytorch/commit/3481c54f3cd388fe46ae989e0dcaaf21a8844c0c)|2026-06-16 20:01:41 +0800 CST|Add test case fot torch_npu
    | See merge request: Ascend/pytorch!38704
    • [#38602](https://gitcode.com/Ascend/pytorch/merge_requests/38602)
[Compare with previous version](https://gitcode.com/Ascend/pytorch/merge_requests/38602/diffs?diff_id=6483921&start_sha=dd6e2754e46844dbf81cc88d19c1eb4ffee7dd0a
ascend-robotascend-robot成员
6月18日 added a commit that referenced this pull request
  • 419a247b - [sync] PR-38602: 新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 Co-authored-by: yuanqi1104 # message auto-generated for no-merge-commit merge: !38733 merge sync-pr38602-yuanqi_add_torch_npu_testcases-to-master into master [sync] PR-38602: 新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 Created-by: yuanqi1104 Commit-by: yuanqi1104 Merged-by: ascend-robot Description: ### 1. Origin pull request: https://gitcode.com/Ascend/pytorch/merge_requests/38602 ### 2. Original pull request related issue(s): https://gitcode.com/Ascend/pytorch/issues/2402 ### 3. Original pull request related commit(s): | Sha | Datetime | Message | |---|---|---| |[3481c54f](https://gitcode.com/Ascend/pytorch/commit/3481c54f3cd388fe46ae989e0dcaaf21a8844c0c)|2026-06-16 20:01:41 +0800 CST|Add test case fot torch_npu
    | See merge request: Ascend/pytorch!38733
    • [#38602](https://gitcode.com/Ascend/pytorch/merge_requests/38602)
[Compare with previous version](https://gitcode.com/Ascend/pytorch/merge_requests/38602/diffs?diff_id=6483921&start_sha=931e125a575ca9473bd1570929528b6a46f584c9
ascend-robotascend-robot成员
6月22日 added a commit that referenced this pull request
  • ec1d9947 - [sync] PR-38602: 新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 Co-authored-by: yuanqi1104 # message auto-generated for no-merge-commit merge: !38860 merge sync-pr38602-yuanqi_add_torch_npu_testcases-to-master into master [sync] PR-38602: 新增torch_npu.npu.are_compatible_impl_enabled和torch_npu.npu.get_amp_supported_dtype接口的测试用例。 Created-by: yuanqi1104 Commit-by: yuanqi1104 Merged-by: ascend-robot Description: 本PR为对 https://gitcode.com/Ascend/pytorch/pull/38733 的补充 ### 1. Origin pull request: https://gitcode.com/Ascend/pytorch/merge_requests/38602 ### 2. Original pull request related issue(s): https://gitcode.com/Ascend/pytorch/issues/2402 ### 3. Original pull request related commit(s): | Sha | Datetime | Message | |---|---|---| |[3481c54f](https://gitcode.com/Ascend/pytorch/commit/3481c54f3cd388fe46ae989e0dcaaf21a8844c0c)|2026-06-16 20:01:41 +0800 CST|Add test case fot torch_npu
    | See merge request: Ascend/pytorch!38860
    • [#38602](https://gitcode.com/Ascend/pytorch/merge_requests/38602)
[Compare with previous version](https://gitcode.com/Ascend/pytorch/merge_requests/38602/diffs?diff_id=6483921&start_sha=50aeb2ffbee2fb5bf55a60c12c5a6918eba5068f