tensorly.tenalg.tensor_dot

tensor_dot(tensor1, tensor2)[source]

Returns a generalized outer product of the two tensors

Parameters:
tensor1tensor

of shape (J1, …, JN)

tensor2tensor

of shape (K1, …, KM)

Returns:
outer product of tensor1 and tensor2

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