CartesianProdΒΆ
Performs cartesian product of the given sequence of tensors.
Abstract Signature:
CartesianProd(tensors: List[Tensor])
JAX (Core)
API:
jax.numpy.meshgridStrategy: Macro 'jnp.stack(jnp.meshgrid(*{tensors}, indexing='ij'), -1).reshape(-1, len({tensors}))'
NumPy
API:
numpy.meshgridStrategy: Macro 'np.stack(np.meshgrid(*{tensors}, indexing='ij'), -1).reshape(-1, len({tensors}))'