Torch Postprocess inference speed problem

My model pre process is 500 fps and model fps is 1000 but post process model is stack 30 fps one line. Total fps is down. But this code line is very fast normaly. If ı change this line with under. Then this code is tack same location. I didint find anything like that. I treid every possibilities but same location is slow.

If you are using the GPU you would have to synchronize the code before starting and stopping the timer.
Otherwise the time will be accumulated in a blocking operation.
Could this be the case for the different timings you are seeing?

Hi thanks for come back i solve last night. I’m measuring wrong like you said. Every thing is normal now.
My model is slow