examples
examples copied to clipboard
Shuffle pixels and adj matrix but GNN not work
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]
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.