Hi Niki!



 Niki:

I am looking for drawing k random batches of 2 objects from test dataset, CIFAR10. Let’s say for batch_size=128, k=64, any ideas how can I do that?


Could you clarify what you want to do?  You say that you
want “batches of 2 objects,” but you also say that you want
“batch_size=128.”  If 2 is not that batch size (2 items per
batch), what role does 2 play in your question?
Best regards.
K. Frank