IMO this cprofile output is [unfiltered] garbage, in particular entries that you mention are profiling related I think. I’d suggest to use a profiler that gives a tree view (e.g. one in spyder ide), if you really need to profile general python code above pytorch/aten, otherwise “autograd” output parts are more relevant.