已合并
【PR】: 简要描述 删除不需要使用的文件 graph_dump_utils.h #1366
shengnan创建于 7月20日
【PR】: 简要描述 删除不需要使用的文件 graph_dump_utils.h #1366
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 shengnan 的贡献)atomgit-bot
7月20日 评论:
7月20日 评论:
变更摘要
本次 PR 属于代码清理重构,主要目的是删除不再使用的头文件 graph_dump_utils.h 及其在相关源文件中的引用。该头文件定义了 af 命名空间下两个内联的 DumpGraph 函数重载,分别用于将 ComputeGraphPtr 和 ExecuteGraph* 对象落盘为文件(包括 GE Graph、ONNX 及可读格式)。由于这些函数已不再被项目其他部分调用,移除它们可以消除死代码、减少不必要的依赖。
主要改动
- 删除
graph_dump_utils.h头文件:移除autofuse/inc/graph_metadef/graph/utils/graph_dump_utils.h,其中包含两个DumpGraph内联函数重载及其对ComputeGraph、ExecuteGraph、ExecuteGraphAdapter等依赖的引用。 - 移除
fused_graph_unfolder.cpp中的引用:在autofuse/optimize/fused_graph/fused_graph_unfolder.cpp中删除#include "graph_dump_utils.h",清理已删除头文件的包含关系。 - 移除
test_fusedgraph_modifier.cpp中的引用:在autofuse/tests/ut/optimize/test_fusedgraph_modifier.cpp中删除#include "graph_dump_utils.h"。 - 移除
test_fusedgraph_unfolder.cpp中的引用:在autofuse/tests/ut/optimize/test_fusedgraph_unfolder.cpp中删除#include "graph_dump_utils.h"。


不准确?
atomgit-bot
7月20日 评论:
7月20日 评论:
7月20日 添加了label:cann-cla/yes
CANN-robot
7月20日 评论:
7月20日 评论:
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 |
|---|---|---|
| repo-cann/graph-autofusion | ✅ zhanj, xchu42, zhang_shengjie (3/2) | ✅ zhanj (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
shengnan666, thanks for your pull request. All authors of the commits have signed the CLA. 👍


7月20日 将yangyongqiang0606,xchu42,zhang_shengjie,depeng1994,wqtshg_wt,peiyang,XuebinYang,sjtulxh,zhanj,zhujingjing,xuyafei,wangxiaotian995设为评审人
7月20日 将yangyongqiang0606,xchu42,zhang_shengjie,depeng1994,wqtshg_wt,peiyang,XuebinYang,sjtulxh,zhanj,zhujingjing,xuyafei,wangxiaotian995设为评审人
7月20日 将yangyongqiang0606,xchu42,zhang_shengjie,depeng1994,wqtshg_wt,peiyang,XuebinYang,sjtulxh,zhanj,zhujingjing,xuyafei,wangxiaotian995设为审查人
7月20日 将yangyongqiang0606,xchu42,zhang_shengjie,depeng1994,wqtshg_wt,peiyang,XuebinYang,sjtulxh,zhanj,zhujingjing,xuyafei,wangxiaotian995设为审查人
7月20日 添加了label:ci-pipeline-running
CANN-robot
7月20日 评论:
7月20日 评论:
CANN-robot
7月20日 评论:
7月20日 评论:
流水线任务触发成功
任务链接 [95d79c7f6cf04cd6ae71b4bd9fc9a534][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| UT_Test_Python_superkernel | ✅ SUCCESS | >>>>> | |
| ST_Test_Python_superkernel | ✅ SUCCESS | >>>>> | |
| UT_Test_superkernel | ✅ SUCCESS | >>>>> | |
| UT_Test_autofuse_framework | ✅ SUCCESS | >>>>> | |
| ST_Test_autofuse_framework | ✅ SUCCESS | >>>>> | |
| UT_Test_autofuse_ascendc_api | ✅ SUCCESS | >>>>> | |
| ST_Test_autofuse_ascendc_api | ✅ SUCCESS | >>>>> | |
| ST_Test_autofuse_e2e | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> |
[2026-07-20 19:49:14] CI执行结束


CANN-robot
7月20日 评论:
7月20日 评论:
xchu42
7月20日 评论:
7月20日 评论:
/lgtm


7月20日 删除了label:ci-pipeline-running
7月20日 添加了label:ci-pipeline-passed
zhang_shengjie
7月20日 评论:
7月20日 评论:
/lgtm


7月20日 添加了label:lgtm
zhanj
7月20日 评论:
7月20日 评论:
/approve


7月20日 添加了label:approved
7月20日 合入了pull request
Pull Request
描述
删除不需要使用的文件 graph_dump_utils.h
变更类型
请选择本次引入的变更类型:
关联的Issue
如何测试
描述测试此变更的步骤和前提条件:
1.
2.
核对清单
其他信息
在此添加任何其他关于本次 PR 的说明。