[Bug Fix] new sample STFPM to validate fix_hash#273
Merged
Conversation
…void unstable result between different python versions.
|
Thanks for your contribution! |
Xreki
approved these changes
Sep 12, 2025
JewelRoam
pushed a commit
to JewelRoam/GraphNet
that referenced
this pull request
Oct 29, 2025
* Use astor instead of ast to unparse source code of paddle model, to avoid unstable result between different python versions. * fix hash bug cased by python-version 3.10/3.12
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
修正了由 python 版本带来的 hash 区别
Description
同时提交新模型 STFPM ,原本的模型dump下来缺少
shadow_output。通过修改model.py然后经过 GraphNet validate 达到了入库条件,修改备注如下:exec_programs.py中有 6 个 Pirprogram, 但是有 2 个带 grad 已排除,另外 4 个结构完全相同 --- 所以模型只生成了一个 model,py 而不是 subgraph_X * 4个exec_programs.py在(之前)出错的点,就是没有shadow_output;如果修改就是 4 处 Pirprogram 都改,所以选择修改model.pygraph_hash.txt应用了最近版本的 hash 方法;基于PR [Bug Fix] Use astor instead of ast to unparse source code of paddle model, to avoid unstable result between different python versions. #272