Thank you very much for the reply by taking time @ptrblck.
Even I have analyzed and got to know that I am making a mistake in unpacking. Thank you for your assertions and help.
It may be a stupid question to ask, but as I am quite new to PyTorch and the data loader thing.
I am trying to unpack it but it is giving me a Runtime error or out-of-shape error.
if possible, can you just give me an Idea/hint on how should I unpack for 2 images in data loader for
for batch_idx, (data, target) in enumerate(train_loader):
        target = target if len(target) > 0 else None
        if not type(data) in (tuple, list):
            data = (data,)
        if cuda:
            data = tuple(d.cuda() for d in data)
            if target is not None:
                target = (t.cuda() for t in target)