Add graph mode debugging hints and troubleshooting doc#39
Merged
Conversation
Surfaces actionable hints (export_with_no_grad toggle, dynamic_shapes, eager fallback) in the torch.export.export failure message, and includes the source module name when a graph partition annotation fails so it can be excluded via module_name_configs. Adds a Graph Mode Troubleshooting doc under a new Debugging doc section.
The link still pointed at the old utils/ location after this branch moved the doc to debugging/.
Link "Graph execution mode" to the execution-modes section, note that export failures may warrant fixing the model definition (since the same construct can block coreai-torch conversion later), and drop the "our"/"report against torch" phrasing per review.
aseemw
approved these changes
Jul 15, 2026
…tils torch.export's insert_deferred_runtime_asserts synthesizes one SymInt mul per shape-runtime assertion under a shared torch_fn tag, collapsing several into a single SourcePartition. The new strict "exactly 1 call function node" check treated this as an error, regressing test_prepare_with_symint_mul_partition_collision (and CI). These SymInt nodes carry no tensor value to annotate, so picking any one of them is safe, matching the pre-existing lenient behavior for this case.
…' into u/usimha/update-graph-mode-error
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.
Preview: https://u-simha.github.io/coreai-optimization