Ah OK, thanks for the explanation.
I’m not sure what the proper way would be, but I’ve seen the usage of c10::ArrayRef<long int> in C++ and passing a tuple with different number of elements on the Python side via:
(1,)
(1, 2)
(1, 2, 3)
...