CUDA operations are asynchronous, so you would need to synchronize the code before starting and stopping the timer via torch.cuda.synchronize().
Currently the first iterations are most likely just profiling the kernel launches and will then block in the net(ran) line of code after a few iterations.