You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support the Equivalent of profiler.key_averages(group_by_stack_n=n) #294
Identifying the top operators / kernels and their source user Python code is helpful to find the main bottlenecks and perform targeted optimizations. Does HTA support something equivalent, or could you shed some light on implementing one? Thanks!
I also found get_aten_op_kernels_and_delay(), but seems like it traces down from aten ops only instead of source user training code.
Activity
fengxizhou commentedon Sep 9, 2025
It's possible but requires writing some code. The basic idea is to construct a call stack graph and then traverse that graph to print the aggregation.