Fix output_dir of dtype generalization pass#624
Merged
Xreki merged 4 commits intoPaddlePaddle:developfrom Feb 2, 2026
Merged
Conversation
|
Thanks for your contribution! |
Xreki
reviewed
Feb 2, 2026
Collaborator
There was a problem hiding this comment.
这里可以和其他pass一样,使用rel_model_path
Collaborator
There was a problem hiding this comment.
graph_hash.txt应该是使用model.py的代码生成的:
from graph_net.hash_util import get_sha256_hash
file_hash = get_sha256_hash(py_code)
(Path(model_path) / "graph_hash.txt").write_text(file_hash)
另外,作用于子图的话,还有个subgraph_sources.json需要拷贝,这样原始样本里面没有,你直接一起拷贝哈。
Contributor
Author
There was a problem hiding this comment.
subgraph_sources.json是还没有是吗,我直接copy了
Collaborator
There was a problem hiding this comment.
subgraph_sources.json原始整图样本里面没有,子图样本里面会存在,你判断下存在就拷贝。
Collaborator
|
还有一处,也请一起修改下吧,就是样本试跑, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
other
Description
Fix outpit_dir of dtype generalization pass