If the total number of samples should be 2500, you should use this shape in dim0 via:
XY = XY.view(-1, 2) # should have shape [2500, 2] now
T = T.view(-1, 1) # should have shape [2500, 1] now

Afterwards you can pass these tensors to a TensorDataset and this dataset to a DataLoader.
Let me know, if you get stuck.