x, x2 = torch.rand(2, 10), torch.rand(2, 3)
ind = torch.tensor([1,3,7], dtype=torch.long)
x[:, ind] = x2

could anyone tell me how to do last assignment in c++?
I tried
x.index_select(x, 1, ind) = x2

but it does not work.