I guess the main reason is that this function is not (yet) implemented for int/byte types, since these types cannot be used for gradient calculation.
If you think this feature is not an edge case and would be used by a lot of users, we would be more than happy to accept contributions.