Dtype of output of pad should follows input, but if dtype of input is not float, output will still be float becase pad_value is float.