Skip to content

Commit 89541fc

Browse files
author
Andrew Gu
committed
Set record_shapes=True for profiler
ghstack-source-id: 6f1ed49d15ce311f1bf118820965cdb5309a8030 Pull Request resolved: #419
1 parent ac83f9c commit 89541fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchtitan/profiling.py

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def trace_handler(prof):
6868
],
6969
schedule=torch.profiler.schedule(wait=wait, warmup=warmup, active=active),
7070
on_trace_ready=trace_handler,
71+
record_shapes=True,
7172
) as torch_profiler:
7273
torch_profiler.step_num = global_step
7374
yield torch_profiler

0 commit comments

Comments
 (0)