[dynamo][invoke_subgraph] Escape hatch to override lookup logic#177215
Open
anijain2305 wants to merge 6 commits intogh/anijain2305/1075/basefrom
Open
[dynamo][invoke_subgraph] Escape hatch to override lookup logic#177215anijain2305 wants to merge 6 commits intogh/anijain2305/1075/basefrom
anijain2305 wants to merge 6 commits intogh/anijain2305/1075/basefrom
Conversation
Add support for user-defined ___dynamo_module_hash__ on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. [ghstack-poisoned]
This was referenced Mar 11, 2026
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/177215
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit 56d05a7 with merge base 3fab23b ( BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
anijain2305
added a commit
that referenced
this pull request
Mar 11, 2026
Add support for user-defined ___dynamo_module_hash__ on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. ghstack-source-id: 113bfaf Pull Request resolved: #177215
This PR needs a
|
…logic" Add support for user-defined `___dynamo_module_hash__` on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
anijain2305
added a commit
that referenced
this pull request
Mar 11, 2026
Add support for user-defined ___dynamo_module_hash__ on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. ghstack-source-id: 16f80de Pull Request resolved: #177215
…logic" Add support for user-defined `___dynamo_module_hash__` on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
anijain2305
added a commit
that referenced
this pull request
Mar 12, 2026
Add support for user-defined ___dynamo_module_hash__ on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. ghstack-source-id: 9e48c21 Pull Request resolved: #177215
…logic" Add support for user-defined `___dynamo_module_hash__` on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
anijain2305
added a commit
that referenced
this pull request
Mar 12, 2026
Add support for user-defined ___dynamo_module_hash__ on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. ghstack-source-id: 9fc9a5d Pull Request resolved: #177215
…logic" Add support for user-defined `___dynamo_module_hash__` on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
anijain2305
added a commit
that referenced
this pull request
Mar 13, 2026
Add support for user-defined ___dynamo_module_hash__ on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. ghstack-source-id: ba16e08 Pull Request resolved: #177215
…logic" Add support for user-defined `___dynamo_module_hash__` on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
anijain2305
added a commit
that referenced
this pull request
Mar 13, 2026
Add support for user-defined ___dynamo_module_hash__ on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs. ghstack-source-id: 9b3e1e1 Pull Request resolved: #177215
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.
Stack from ghstack (oldest at bottom):
Add support for user-defined
___dynamo_module_hash__on nn.Module as an escape hatch for invoke_subgraph reuse. When a module defines this method, Dynamo calls it eagerly at compile time and uses the returned int as the cache key, bypassing all automatic guard/reuse checks. This lets users assert "these modules are structurally identical" when automatic checks are too conservative or hit Dynamo bugs.cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @kadeng @chauhang @amjames @Lucaskabela @jataylo