Skip to content

Commit 7a972fd

Browse files
committed
computation_traces.append(grad_transform_on_trace(computation_trc))
It'd be reasonable to append the output of `grad_transform_on_trace` to `computation_traces: list[TraceCtx]`
1 parent 929ec19 commit 7a972fd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

thunder/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ def apply_transforms_and_build_cache_entry(cd, cs, cache_info, prologue_trc, com
532532
from thunder.transforms.autodiff import grad_transform_on_trace
533533

534534
computation_trc = grad_transform_on_trace(computation_trc)
535+
computation_traces.append(computation_trc)
535536

536537
from thunder.executors.passes import _transform_for_operator_executor_execution
537538
from thunder.distributed.utils import maybe_sort_waits

0 commit comments

Comments
 (0)