feat(tools): add backward graph generation and validation tools#711
Open
Dayuxiaoshui wants to merge 1 commit into
Open
feat(tools): add backward graph generation and validation tools#711Dayuxiaoshui wants to merge 1 commit into
Dayuxiaoshui wants to merge 1 commit into
Conversation
|
Thanks for your contribution! |
This commit introduces backward graph generation pipeline integrated with GraphNet's test_compiler framework. Changes: - graph_net/torch/extractor.py: add try/except for capture_sparse_compute to support PyTorch versions where the config does not exist. - graph_net/torch/sample_pass/backward_graph_extractor.py: - switch module from train() to eval() to avoid dropout/BN side effects - clone forward inputs with detach().clone() to avoid inplace modification - add _is_pure_shape_graph() to skip subgraphs with only shape ops - tools/backward_graph_test.py: - batch backward FX Graph generation via aot_autograd - integrated test_compiler validation with auto-generated weight_meta.py - default GRAPH_NET_FLUCTUATION_DETECT_THRESHOLD=0.5 and trials=10 - tools/backward_kernel_dedup.py: - Triton kernel dedup analysis for backward graphs
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.
This commit introduces backward graph generation pipeline integrated with GraphNet's test_compiler framework.
Changes:
PR Category
Description