DSE-MSU / DeepRobust

A pytorch adversarial library for attack and defense methods on images and graphs
MIT License
994 stars 192 forks source link

A bug found in SGA on Pubmed dataset #158

Open benjaminnNgo opened 3 months ago

benjaminnNgo commented 3 months ago

Hi! Thanks for a very nice package.

I am having an error while running the example, provided inside the SGA class, of the SGA attack on the Pubmed dataset. Here are the code chunk and the error I got:

SGA_bug

self.selfloop_degree = torch.tensor(adj.sum(1).A1 + 1, device=self.device) .AttributeError: 'numpy.ndarray' object has no attribute 'A1'