Range of a tensor in C++

Hello,

I’m currently writing some C++ code with torch (to eventually make it a PyTorch extension).
My question is rather simple, I have a torch::Tensor, let’s name it “my_tensor” and make it 3 dimensional.
What is the C++ equivalent of Python “my_tensor[0:4, 2:, 3]”, for example?

Thanks!

see Subtensor add and division in libtorch