| fix: restore limit_core_num implemented by the scope
Co-authored-by: xuzhenhua2025<xuzhenhua4@huawei.com>
# message auto-generated for no-merge-commit merge:
!31827 merge v2.7.1 into v2.7.1
fix: restore limit_core_num implemented by the scope
Created-by: xuzhenhua2025
Commit-by: xuzhenhua2025
Merged-by: ascend-robot
Description: <!--
PR描述模板更新日期:20260203
-->
# 【合入来源】
- [ ] 需求
- [x] 问题单
- [ ] issue/工单
- [ ] 重构优化
- [ ] 资料更新
# 【修改方案】
1. 恢复limit_core_num接口调用;
2. 增加接口签名校验和测试用例.
# 【资料变更】
不涉及
# 【接口变更】
不涉及
# 【功能验证】
参考同时提交的测试用例代码:test_npugraph_ex.py中test_limit_core_num用例
# 【CheckList】
- [x] 代码注释完备,正确记录错误日志
- [x] 代码实现进行了返回值、空指针等校验
- [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等
- [x] PR持续集成流水线(CI)执行通过,代码检查无异常
See merge request: Ascend/pytorch!31827 | 2 个月前 |