I'm iterating over some input batches and generating results that have shape (BatchSize, X, Y). The BatchSize
is not necessarily the same as I loop over the batches. I'd like to return a single output which is the concatenated version of the results along the batch dimension. What's the most elegant way to do this in NumPy?
I'm not so much worried about the performance but rather dealing with the multi-dimensionality of the accumulated result array.