loop = tqdm(loader[0], leave=True)
for batch_idx, (real,_) in enumerate(loop):

    real = real.to(DEVICE)

    cur_batch_size = real.shape[0]


When i iterate over dataloader the output is

My total items are 49190
loader =  DataLoader(
    tupled_dataset_with_label,

    batch_size=64,

    shuffle=True,

    num_workers=NUM_WORKERS,

    pin_memory=True

) 

it = iter(loader)
first = next(it)
second = next(it)
print(first.shape)
print(second.shape)
Output:
torch.Size([64, 1, 64, 64])
torch.Size([64, 1, 64, 64])