Hi all,
I use PyTorch version 0.2.0_4 and get an IndexError which I cannot explain:
print("X:", x.size())    
print("TYPE:", type(self.neuron_map[k]))

gives
X: torch.Size([25, 8])
TYPE: <class 'list'>

Now
 x[:, self.neuron_map[k]]

results in
 IndexError: When performing advanced indexing the indexing objects must be LongTensors or convertible to LongTensors

I cannot understand why this happens and I have no idea how to fix this. Any help appreciated.