Imported from https://github.com/ThomasZiegler/Efficient-Smoothing-of-Dilated-Convolutions