I would like to multiply two tensors with different ranks, e.g.
tensor A -> (i x j x k x l)
tensor B -> (l x m)
to get another tensor with this dimensions.
tensor C -> (i x j x k x m) = (i x j x k x l)*(l x m)
In tensorflow I have to reshape all the time to get the output as
(A.reshape(-1,l)*B).reshape(i,j,k,m)
Any other operation that does it directly?