minmax kernel for clipped relu