Pull Request已成功合入, 合并人@ascend-robot
(感谢 dilililiwhy 的贡献)以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入
| Module List | Reviewers | Committers |
|---|---|---|
| repo-Ascend/pytorch | yanpengquan, duchengkun, zqwenn, SCh_zx, yangkaixin | liwei386, wangchao430, shaoyf, wangchao285, aichunzheng |


CLA Signature Pass
@dilililiwhy, thanks for your pull request. All authors of the commits have signed the CLA. 👍


代码可维护性: 在检视过程中发现,torchair子模块的URL从gitee.com迁移到了gitcode.com,但其他子模块的URL来源存在不一致性。op-plugin、torchair、Tensorpipe使用gitcode.com,而googletest、fmt、nlohmann、torch-mlir使用gitee.com。这种混合使用不同代码托管平台的情况可能会影响项目的依赖管理一致性和长期维护性。
问题类型: 代码可维护性
文件路径: .gitmodules
行号: 10
问题代码:
url = https://gitcode.com/ascend/torchair.git
修改建议:
建议统一所有子模块的代码托管平台来源。如果项目主要使用gitcode.com,考虑将googletest、fmt、nlohmann、torch-mlir也迁移到gitcode.com的对应镜像;如果主要使用gitee.com,则考虑将op-plugin、torchair、Tensorpipe迁移回gitee.com。这样可以简化依赖管理,提高构建稳定性。
此评论由代码审查工具自动生成


问题/功能描述
本次PR主要解决torchair子模块仓库地址迁移问题,将源码仓库从gitee平台迁移到gitcode平台,确保代码依赖管理的正确性和可访问性,避免因仓库平台变更导致的子模块拉取失败问题。
修改方案描述
通过更新.gitmodules配置文件,将third_party/torchair/torchair子模块的URL地址从https://gitee.com/ascend/torchair.git修改为https://gitcode.com/ascend/torchair.git,保持子模块路径和其他配置不变,确保项目能够正常拉取和更新依赖的子模块代码。
安全质量评估
风险等级: 低
评估说明: 本次变更仅涉及子模块仓库地址的更新,不涉及任何代码逻辑修改。变更内容为纯文本配置文件的URL地址修改,不存在编码安全问题、安全红线问题或漏洞风险。由于是配置文件的简单更新,且目标仓库仍为同一组织的可信源,安全风险极低。


compile


✅ 流水线任务触发成功,正在执行,请稍候。 任务链接[75f1817555184fd7bd98ac54163991c4]


get-log


/approve


Review Guide
This Pull-Request Passes Review.
Committers who writed a comment of /approve are: wangchao430, wangqiang160.
Reviewers who writed a comment of /lgtm are: wangqiang160, wangchao430.


What type of PR is this?
What does this PR do / why do we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewers: