Libtorch -> how to use torch::gather to index using 2 tensors?

Hello!!
I want to port " tensor[0,:,x,y] " in pytorch to c++ libtorch !
I tried to use index_select or gather but I failed.
Please give me a hint!!
Thank you!