Not at my computer to test, but maybe something like this?
tens_list = list()
for x in range(10):
    for y in range(100):
        tens_list.append((x, y))
tens = torch.tensor(tens_list, [data types if needed])