yeah,  but when the index contains  coordinates of more than one elements , i alway encounter the indexError.
the details are as follows:
index0 = torch.LongTensor[x])
index1 = torch.LongTensor([y]) #where x,y are one-demension tensor contains many pairs coordinates
input[index0,index1]
i got the error like this:
IndexError: when perfroming advanced indexing the indexing objects must be LongtTensor or convertible to LongTensor.
but as you see, the index’s type is already LongTensor.