I wanted to check how many combinations the torch.combinations() function would return for different r values.
values = torch.arange(23, dtype=torch.uint8, device="cuda:0")
combinations = torch.combinations(values, r=23)

Even though I picked r=23 which should just return 1 combination, I got the above mentioned error: CUDA out of memory error. Tried to allocate 7869836414.81 GiB (...).
Why does this happen?