[Bug Fix] Use ast to generate the hash of Paddle models.#266
Merged
Conversation
|
Thanks for your contribution! |
b9b8f23 to
06227d7
Compare
06227d7 to
6910563
Compare
JewelRoam
approved these changes
Sep 9, 2025
JewelRoam
pushed a commit
to JewelRoam/GraphNet
that referenced
this pull request
Oct 29, 2025
…e#266) * Use ast to generate the hash of Paddle models. * Update all the hash value of paddle samples.
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
Bug Fix
Description
ast获取Paddle样本模型的forward函数源码,来生成Paddle模型的hash值。ast.unparse(fn)会过滤掉原样本文件中的注释。validate中哈希值校验的逻辑,修改成:graph_hash.txt文件,则判断新生成的hash值跟graph_hash.txt文件中的哈希值是否一致。若不一致,先更新graph_hash.txt文件并报错。graph_hash.txt文件,且args.dump_graph_hash_key为False,报错。args.dump_graph_hash_key的默认值改成True,确保CI上对hash值的正确性、一致性进行检查。