DSE-MSU / DeepRobust

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

Some error in 'base_attack.py' #76

Closed byerose closed 3 years ago

byerose commented 3 years ago

Hi. There seems to be some error in file base_attack.py. I didn't find the definition of x/y.

64 elif type(x).__name__ == 'ndarray': 74 label = torch.tensor(y)

Bro, you'd better check it.

YaxinLi0-0 commented 3 years ago

got it, have fixed. thanks for reporting this to us. XD