Skip to content

Commit 1444191

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 b8d644d commit 1444191

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
@@ -525,6 +525,7 @@ def apply_transforms_and_build_cache_entry(cd, cs, cache_info, prologue_trc, com
525525
from thunder.transforms.autodiff import grad_transform_on_trace
526526

527527
computation_trc = grad_transform_on_trace(computation_trc)
528+
computation_traces.append(computation_trc)
528529

529530
from thunder.executors.passes import _transform_for_operator_executor_execution
530531
from thunder.distributed.utils import maybe_sort_waits

0 commit comments

Comments
 (0)