torch.cartesian_prod: add type hints (#81377)
Noticed this function was missing type hints.
There are plenty more obviously, but this is the only one I happen to be using that is missing type hints.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/81377
Approved by: https://github.com/malfet