torch.functional.cartesian_prod
- torch.functional.cartesian_prod(*tensors)
Do cartesian product of the given sequence of tensors. The behavior is similar to python’s itertools.product.
- Parameters:
*tensors (Tensor) – any number of 1 dimensional tensors.
- Returns