Sorry I didn’t explain so well then.
In a real world situation, each frame will be recorded by a camera. In terms of processing, I would like to create a batch with N times this same frame in order to feed this entire block into the network (with dropout enabled) and take advantage of parallelims of Cuda API:

outputs = net(batch_frame)

I have made some tests and the upper quote seems to be faster than the original approach (below):

outputs = [net(frame) for i in range(N)]

In which the frame is feeded N times into the network (but this time not in parallel).
The problem is that I don’t know how I can create a batch with N times the same image