Imported from https://github.com/PiotrDabkowski/pytorch-saliency