DSE-MSU / DeepRobust

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

Unable to use PYG example #101

Open shawn-dm opened 2 years ago

shawn-dm commented 2 years ago

When I use the three examples you recommended using pyg, the program all reports the same error, is there an error in the dpr2pyg file?

File "/usr/local/anaconda3/envs/torch_pyg/lib/python3.9/site-packages/deeprobust/graph/data/pyg_dataset.py", line 83, in get item, slices = self.data[key], self.slices[key] TypeError: 'NoneType' object is not subscriptable

shawn-dm commented 2 years ago

Not available in versions of pyg after 2.0, but available in older versions of pyg.

EdisonLeeeee commented 2 years ago

Fixed in master.