Do you know which kernels were called additionally in Python and were you using the same setup? E.g. in case you were using cudnn’s benchmark mode, different kernels will be profiled for each new input shape, which would also show up in the profile.