Fix clip implementation which was always converting input to float32. Now min and max are converted to input type.