[dynamo] Record traced_sources on SubgraphTracer#176459
[dynamo] Record traced_sources on SubgraphTracer#176459anijain2305 wants to merge 6 commits intogh/anijain2305/1055/basefrom
Conversation
Record every source accessed via VariableBuilder (and cell loads via load_cell) into an OrderedSet on SubgraphTracer, then propagate it through SubgraphTracingInfo. This gives callers a complete picture of which sources were touched during a subgraph trace -- needed by the upcoming invoke_subgraph reuse mechanism to collect guards and detect mutations on captured variables. Authored with Claude. [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/176459
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 Cancelled Jobs, 4 Unrelated FailuresAs of commit 4a9cd82 with merge base 1da0362 ( CANCELLED JOBS - The following jobs were cancelled. Please retry:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
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. |
This PR needs a
|
Record every source accessed via VariableBuilder (and cell loads via load_cell) into an OrderedSet on SubgraphTracer, then propagate it through SubgraphTracingInfo. This gives callers a complete picture of which sources were touched during a subgraph trace -- needed by the upcoming invoke_subgraph reuse mechanism to collect guards and detect mutations on captured variables. Authored with Claude. [ghstack-poisoned]
Lucaskabela
left a comment
There was a problem hiding this comment.
Generally good but minor nit on OrderedSet type
| # effect was detected. None means no side effect was observed. | ||
| side_effect_stack: traceback.StackSummary | None = None | ||
| # All sources accessed via VariableBuilder during the subgraph trace. | ||
| traced_sources: OrderedSet[Any] = field(default_factory=OrderedSet) |
There was a problem hiding this comment.
nit: OrderedSet[Source]?
Record every source accessed via VariableBuilder (and cell loads via load_cell) into an OrderedSet on SubgraphTracer, then propagate it through SubgraphTracingInfo. This gives callers a complete picture of which sources were touched during a subgraph trace -- needed by the upcoming invoke_subgraph reuse mechanism to collect guards and detect mutations on captured variables. Authored with Claude. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
Record every source accessed via VariableBuilder (and cell loads via load_cell) into an OrderedSet on SubgraphTracer, then propagate it through SubgraphTracingInfo. This gives callers a complete picture of which sources were touched during a subgraph trace -- needed by the upcoming invoke_subgraph reuse mechanism to collect guards and detect mutations on captured variables. Authored with Claude. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
Record every source accessed via VariableBuilder (and cell loads via load_cell) into an OrderedSet on SubgraphTracer, then propagate it through SubgraphTracingInfo. This gives callers a complete picture of which sources were touched during a subgraph trace -- needed by the upcoming invoke_subgraph reuse mechanism to collect guards and detect mutations on captured variables. Authored with Claude. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
Record every source accessed via VariableBuilder (and cell loads via load_cell) into an OrderedSet on SubgraphTracer, then propagate it through SubgraphTracingInfo. This gives callers a complete picture of which sources were touched during a subgraph trace -- needed by the upcoming invoke_subgraph reuse mechanism to collect guards and detect mutations on captured variables. Authored with Claude. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
|
Starting merge as part of PR stack under #176477 |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 6 checks: inductor / inductor-cpu-test / test (cpu_inductor_torchbench, 1, 2, linux.2xlarge.amx, unstable), inductor / unit-test / inductor-test / test (inductor_cpp_wrapper, 1, 2, linux.g5.4xlarge.nvidia.gpu), inductor / unit-test / inductor-test / test (inductor, 1, 2, linux.g5.4xlarge.nvidia.gpu), inductor / unit-test / inductor-test / test (inductor_cpp_wrapper, 2, 2, linux.g5.4xlarge.nvidia.gpu), inductor / inductor-test / test (inductor_torchbench, 2, 2, linux.g5.4xlarge.nvidia.gpu), trunk / win-vs2022-cpu-py3 / test (default, 1, 4, lf.windows.4xlarge.nonephemeral) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Record every source accessed via VariableBuilder (and cell loads via load_cell) into an OrderedSet on SubgraphTracer, then propagate it through SubgraphTracingInfo. This gives callers a complete picture of which sources were touched during a subgraph trace -- needed by the upcoming invoke_subgraph reuse mechanism to collect guards and detect mutations on captured variables. Authored with Claude. ghstack-source-id: af12cd2 Pull Request resolved: pytorch/pytorch#176459
Record every source accessed via VariableBuilder (and cell loads via load_cell) into an OrderedSet on SubgraphTracer, then propagate it through SubgraphTracingInfo. This gives callers a complete picture of which sources were touched during a subgraph trace -- needed by the upcoming invoke_subgraph reuse mechanism to collect guards and detect mutations on captured variables. Authored with Claude. ghstack-source-id: 26bf4d7 Pull Request resolved: pytorch/pytorch#176459
Stack from ghstack (oldest at bottom):
Record every source accessed via VariableBuilder (and cell loads via
load_cell) into an OrderedSet on SubgraphTracer, then propagate it
through SubgraphTracingInfo. This gives callers a complete picture of
which sources were touched during a subgraph trace -- needed by the
upcoming invoke_subgraph reuse mechanism to collect guards and detect
mutations on captured variables.
Authored with Claude.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @kadeng @chauhang @amjames @Lucaskabela @jataylo