examples icon indicating copy to clipboard operation
examples copied to clipboard

Shuffle pixels and adj matrix but GNN not work

Open vietnvri opened this issue 5 years ago • 1 comments

Thank you for this wonderful tutorial in GNN! I shuffle pixels, adj matrix but GNN not work. Below is my code. Please point out my mistakes. Thank you.

perm = torch.randperm(self.A.size(1)).cuda()
x = x[:, perm, :]
A_tmp = self.A[perm, :]
A_tmp = A_tmp[:, perm]

vietnvri avatar Sep 17 '20 08:09 vietnvri

I change perm to object variable (self.perm) and fix it for all inputs X. Results of GNN and FC are same. Please give me some intuition. Thanks.

vietnvri avatar Sep 17 '20 09:09 vietnvri