Is ther an easy way to do "tensor = tensor[...,:1]" in C++ torchlib?

I wonder how to do it in C++ torchlib.

I think something like this should work:

tensor.index({"...", Slice(None, 1)})