This should work:
loader = DataLoader(dataset, batch_size=16*10)
for data, target in loader:
    data = data.view(16, 10, 1, 28, 28) # in case you want to use 5-dimensional tensors as the input
    ...