I am new to pytorch. I have a 2-d tensor and a list of rows and columns, I want to select elements in the pair of rows and columns like follow:
x = [[1,2,3]
      ,[4,5,6],
       [7,8,9]]
row = [0,1], col=[1,2] 

I want to have:
output = [1,6]