saliency
saliency copied to clipboard
Use batches for SmoothGrad
To speed up the computation for obtaining smoothed masks, the noisy samples are created first and gradients are obtained as a single batch for all the noisy samples. Afterwards the gradients (or their squares) are summed to give the final smoothed mask.