It’s not an error but could be wrong profiling. If you want to check each operation you would either have to synchronize the code manually, use torch.utils.benchmark, or look at the timeline using a profiler.