Anything that’s not an actual computational kernel (python interpreter, Pytorch dispatcher, etc.)
See the flame graph here in the overhead section: https://horace.io/brrr_intro.html
See the flame graph here in the overhead section: https://horace.io/brrr_intro.html
I think pytorch has a genius design and makes excellent tradeoffs. But it's not the perfect solution to every problem. Genericity vs specialization: hard to win on all fronts.