tensorly.tenalg.batched_outer

batched_outer(tensors)[source]

Returns a generalized outer product of the two tensors

Parameters:
tensor1tensor

of shape (n_samples, J1, …, JN)

tensor2tensor

of shape (n_samples, K1, …, KM)

Returns:
outer product of tensor1 and tensor2

of shape (n_samples, J1, …, JN, K1, …, KM)