Imported from https://github.com/Harry24k/adversairal-defenses-pytorch