kimhc6028 / relational-networks

Pytorch implementation of "A simple neural network module for relational reasoning" (Relational Networks)
https://arxiv.org/pdf/1706.01427.pdf
BSD 3-Clause "New" or "Revised" License
812 stars 160 forks source link

Question about input to relational network #19

Open fernande2000 opened 6 years ago

fernande2000 commented 6 years ago

I do not understand well how you pair the objects. My question is if each pair of objects is feed as input once or twice. If it is fed once then how do you choose the order? to be independent of the order each pair should be fed twice, right? Otherwise there is some break of symmetry in the input pair. I could not understand this from the original article, and the code is still obscure to me to understand this. thanks! UPDATE: I think I got it know, you input all pairs twice (in different order each time), and also each object with itself, thus n^2 instead of n(n-1)/2, Is this correct?